@likewatt/models 1.88.0 → 1.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Scenario.d.ts +0 -1
- package/dist/core/Scenario.js +0 -11
- package/dist/core/Site.d.ts +2 -0
- package/dist/core/Site.js +9 -0
- package/dist/core/enums/InvoiceRatesOption.d.ts +6 -0
- package/dist/core/enums/InvoiceRatesOption.js +10 -0
- package/dist/core/internal/invoiceOcrResult.d.ts +21 -0
- package/dist/core/internal/invoiceOcrResult.js +73 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/core/Scenario.d.ts
CHANGED
|
@@ -130,7 +130,6 @@ export declare class ConfigSite {
|
|
|
130
130
|
demandMultiplier?: number;
|
|
131
131
|
demandMultiplierSlots?: DemandMultiplierSlot[];
|
|
132
132
|
demandMultiplierUnit?: string;
|
|
133
|
-
distributionKey?: DistributionKey[];
|
|
134
133
|
priorityStage?: number;
|
|
135
134
|
rateOfGrowth?: RateOfGrowth[];
|
|
136
135
|
settings?: Record<string, unknown>;
|
package/dist/core/Scenario.js
CHANGED
|
@@ -370,17 +370,6 @@ __decorate([
|
|
|
370
370
|
(0, class_validator_1.IsString)(),
|
|
371
371
|
__metadata("design:type", String)
|
|
372
372
|
], ConfigSite.prototype, "demandMultiplierUnit", void 0);
|
|
373
|
-
__decorate([
|
|
374
|
-
(0, swagger_1.ApiProperty)({ type: [DistributionKey], required: false }),
|
|
375
|
-
(0, mongoose_1.Prop)({
|
|
376
|
-
type: [exports.DistributionKeySchema],
|
|
377
|
-
required: false,
|
|
378
|
-
default: undefined,
|
|
379
|
-
}),
|
|
380
|
-
(0, class_validator_1.IsOptional)(),
|
|
381
|
-
(0, class_validator_1.IsArray)(),
|
|
382
|
-
__metadata("design:type", Array)
|
|
383
|
-
], ConfigSite.prototype, "distributionKey", void 0);
|
|
384
373
|
__decorate([
|
|
385
374
|
(0, swagger_1.ApiPropertyOptional)({ example: 1 }),
|
|
386
375
|
(0, mongoose_1.Prop)(),
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { RetryHint } from './enums/RetryHint';
|
|
|
13
13
|
import { Comments } from './internal/comments';
|
|
14
14
|
import { Rates } from './internal/rates';
|
|
15
15
|
import { ExtractionData } from './internal/extraction-data.model';
|
|
16
|
+
import { InvoiceOcrResult } from './internal/invoiceOcrResult';
|
|
16
17
|
export declare class Site {
|
|
17
18
|
readonly _id: string;
|
|
18
19
|
country: string;
|
|
@@ -131,6 +132,7 @@ export declare class Site {
|
|
|
131
132
|
hasAnalysis: boolean;
|
|
132
133
|
hasContractData: boolean;
|
|
133
134
|
scenarioOption?: string;
|
|
135
|
+
invoiceData?: InvoiceOcrResult;
|
|
134
136
|
createdAt?: Date | string;
|
|
135
137
|
updatedAt?: Date | string;
|
|
136
138
|
}
|
package/dist/core/Site.js
CHANGED
|
@@ -29,6 +29,7 @@ const RetryHint_1 = require("./enums/RetryHint");
|
|
|
29
29
|
const comments_1 = require("./internal/comments");
|
|
30
30
|
const rates_1 = require("./internal/rates");
|
|
31
31
|
const extraction_data_model_1 = require("./internal/extraction-data.model");
|
|
32
|
+
const invoiceOcrResult_1 = require("./internal/invoiceOcrResult");
|
|
32
33
|
let Site = class Site {
|
|
33
34
|
};
|
|
34
35
|
exports.Site = Site;
|
|
@@ -686,6 +687,14 @@ __decorate([
|
|
|
686
687
|
(0, class_validator_1.IsString)(),
|
|
687
688
|
__metadata("design:type", String)
|
|
688
689
|
], Site.prototype, "scenarioOption", void 0);
|
|
690
|
+
__decorate([
|
|
691
|
+
(0, swagger_1.ApiPropertyOptional)({ type: invoiceOcrResult_1.InvoiceOcrResult }),
|
|
692
|
+
(0, mongoose_1.Prop)({ type: invoiceOcrResult_1.InvoiceOcrResultSchema, required: false }),
|
|
693
|
+
(0, class_validator_1.IsOptional)(),
|
|
694
|
+
(0, class_validator_1.ValidateNested)(),
|
|
695
|
+
(0, class_transformer_1.Type)(() => invoiceOcrResult_1.InvoiceOcrResult),
|
|
696
|
+
__metadata("design:type", invoiceOcrResult_1.InvoiceOcrResult)
|
|
697
|
+
], Site.prototype, "invoiceData", void 0);
|
|
689
698
|
__decorate([
|
|
690
699
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
691
700
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceRatesOption = void 0;
|
|
4
|
+
var InvoiceRatesOption;
|
|
5
|
+
(function (InvoiceRatesOption) {
|
|
6
|
+
InvoiceRatesOption["BASE"] = "BASE";
|
|
7
|
+
InvoiceRatesOption["HPHC"] = "HP/HC";
|
|
8
|
+
InvoiceRatesOption["TEMPO"] = "TEMPO";
|
|
9
|
+
InvoiceRatesOption["WE"] = "WE";
|
|
10
|
+
})(InvoiceRatesOption || (exports.InvoiceRatesOption = InvoiceRatesOption = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InvoiceRatesOption } from '../enums/InvoiceRatesOption';
|
|
2
|
+
import { EnergyPrice } from './energy-price.model';
|
|
3
|
+
import { EnergyPriceTempo } from './energy-price-tempo.model';
|
|
4
|
+
export declare class InvoiceOcrResult {
|
|
5
|
+
documentId?: number;
|
|
6
|
+
enedisNumber?: string;
|
|
7
|
+
ratesOption?: InvoiceRatesOption;
|
|
8
|
+
energyPrices?: EnergyPrice[];
|
|
9
|
+
energyPricesTempo?: EnergyPriceTempo[];
|
|
10
|
+
energyPricesWe?: EnergyPrice[];
|
|
11
|
+
subscriptionRates?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const InvoiceOcrResultSchema: import("mongoose").Schema<InvoiceOcrResult, import("mongoose").Model<InvoiceOcrResult, any, any, any, import("mongoose").Document<unknown, any, InvoiceOcrResult, any, {}> & InvoiceOcrResult & {
|
|
14
|
+
_id: import("mongoose").Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v: number;
|
|
17
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InvoiceOcrResult, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<InvoiceOcrResult>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<InvoiceOcrResult> & {
|
|
18
|
+
_id: import("mongoose").Types.ObjectId;
|
|
19
|
+
} & {
|
|
20
|
+
__v: number;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.InvoiceOcrResultSchema = exports.InvoiceOcrResult = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const InvoiceRatesOption_1 = require("../enums/InvoiceRatesOption");
|
|
17
|
+
const energy_price_model_1 = require("./energy-price.model");
|
|
18
|
+
const energy_price_tempo_model_1 = require("./energy-price-tempo.model");
|
|
19
|
+
let InvoiceOcrResult = class InvoiceOcrResult {
|
|
20
|
+
};
|
|
21
|
+
exports.InvoiceOcrResult = InvoiceOcrResult;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], InvoiceOcrResult.prototype, "documentId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], InvoiceOcrResult.prototype, "enedisNumber", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)({ type: String, enum: InvoiceRatesOption_1.InvoiceRatesOption, required: false }),
|
|
36
|
+
(0, class_validator_1.IsEnum)(InvoiceRatesOption_1.InvoiceRatesOption),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], InvoiceOcrResult.prototype, "ratesOption", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, mongoose_1.Prop)({ type: [energy_price_model_1.EnergyPriceSchema], required: false }),
|
|
42
|
+
(0, class_validator_1.IsArray)(),
|
|
43
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
44
|
+
(0, class_transformer_1.Type)(() => energy_price_model_1.EnergyPrice),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], InvoiceOcrResult.prototype, "energyPrices", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, mongoose_1.Prop)({ type: [energy_price_tempo_model_1.EnergyPriceTempoSchema], required: false }),
|
|
50
|
+
(0, class_validator_1.IsArray)(),
|
|
51
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
52
|
+
(0, class_transformer_1.Type)(() => energy_price_tempo_model_1.EnergyPriceTempo),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], InvoiceOcrResult.prototype, "energyPricesTempo", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, mongoose_1.Prop)({ type: [energy_price_model_1.EnergyPriceSchema], required: false }),
|
|
58
|
+
(0, class_validator_1.IsArray)(),
|
|
59
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
60
|
+
(0, class_transformer_1.Type)(() => energy_price_model_1.EnergyPrice),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], InvoiceOcrResult.prototype, "energyPricesWe", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
66
|
+
(0, class_validator_1.IsNumber)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], InvoiceOcrResult.prototype, "subscriptionRates", void 0);
|
|
70
|
+
exports.InvoiceOcrResult = InvoiceOcrResult = __decorate([
|
|
71
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
72
|
+
], InvoiceOcrResult);
|
|
73
|
+
exports.InvoiceOcrResultSchema = mongoose_1.SchemaFactory.createForClass(InvoiceOcrResult);
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './core/enums/FileType';
|
|
|
34
34
|
export * from './core/enums/ImageryQuality';
|
|
35
35
|
export * from './core/enums/RetryHint';
|
|
36
36
|
export * from './core/enums/BannerSeverity';
|
|
37
|
+
export * from './core/enums/InvoiceRatesOption';
|
|
37
38
|
export * from './core/internal/microservice-error';
|
|
38
39
|
export * from './core/internal/battery-params';
|
|
39
40
|
export * from './core/internal/bounding-box';
|
|
@@ -57,6 +58,7 @@ export * from './core/internal/generator-params';
|
|
|
57
58
|
export * from './core/internal/grid-params';
|
|
58
59
|
export * from './core/internal/h2-storage-params';
|
|
59
60
|
export * from './core/internal/imagery-date';
|
|
61
|
+
export * from './core/internal/invoiceOcrResult';
|
|
60
62
|
export * from './core/internal/lat-lng';
|
|
61
63
|
export * from './core/internal/power-cost-config';
|
|
62
64
|
export * from './core/internal/pv-params';
|
package/dist/index.js
CHANGED
|
@@ -60,6 +60,7 @@ __exportStar(require("./core/enums/FileType"), exports);
|
|
|
60
60
|
__exportStar(require("./core/enums/ImageryQuality"), exports);
|
|
61
61
|
__exportStar(require("./core/enums/RetryHint"), exports);
|
|
62
62
|
__exportStar(require("./core/enums/BannerSeverity"), exports);
|
|
63
|
+
__exportStar(require("./core/enums/InvoiceRatesOption"), exports);
|
|
63
64
|
// Error types
|
|
64
65
|
__exportStar(require("./core/internal/microservice-error"), exports);
|
|
65
66
|
// Sub-models
|
|
@@ -85,6 +86,7 @@ __exportStar(require("./core/internal/generator-params"), exports);
|
|
|
85
86
|
__exportStar(require("./core/internal/grid-params"), exports);
|
|
86
87
|
__exportStar(require("./core/internal/h2-storage-params"), exports);
|
|
87
88
|
__exportStar(require("./core/internal/imagery-date"), exports);
|
|
89
|
+
__exportStar(require("./core/internal/invoiceOcrResult"), exports);
|
|
88
90
|
__exportStar(require("./core/internal/lat-lng"), exports);
|
|
89
91
|
__exportStar(require("./core/internal/power-cost-config"), exports);
|
|
90
92
|
__exportStar(require("./core/internal/pv-params"), exports);
|