@likewatt/models 1.45.0 → 1.47.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 +1 -0
- package/dist/core/Scenario.js +7 -0
- package/dist/core/TypeORM/KoncileOcr.d.ts +14 -0
- package/dist/core/TypeORM/KoncileOcr.js +67 -0
- package/dist/core/internal/enums.d.ts +6 -0
- package/dist/core/internal/enums.js +8 -1
- package/dist/core/internal/koncile.d.ts +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/core/Scenario.d.ts
CHANGED
package/dist/core/Scenario.js
CHANGED
|
@@ -505,6 +505,13 @@ __decorate([
|
|
|
505
505
|
(0, class_validator_1.IsString)(),
|
|
506
506
|
__metadata("design:type", String)
|
|
507
507
|
], Scenario.prototype, "message", void 0);
|
|
508
|
+
__decorate([
|
|
509
|
+
(0, swagger_1.ApiPropertyOptional)({ example: 'handled', description: 'Type d\'erreur d\'optimisation (infeasible, handled, timeout, unknown)' }),
|
|
510
|
+
(0, mongoose_1.Prop)(),
|
|
511
|
+
(0, class_validator_1.IsOptional)(),
|
|
512
|
+
(0, class_validator_1.IsString)(),
|
|
513
|
+
__metadata("design:type", String)
|
|
514
|
+
], Scenario.prototype, "errorType", void 0);
|
|
508
515
|
__decorate([
|
|
509
516
|
(0, swagger_1.ApiProperty)({ example: 'Scenario A - Hybrid PV/Wind' }),
|
|
510
517
|
(0, mongoose_1.Prop)({ required: true }),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class KoncileOcr {
|
|
2
|
+
id: string;
|
|
3
|
+
document_id: number;
|
|
4
|
+
template_id?: number;
|
|
5
|
+
document_name: string;
|
|
6
|
+
General_fields?: Record<string, unknown>;
|
|
7
|
+
General_fields_list?: unknown[];
|
|
8
|
+
Line_fields?: Record<string, unknown>;
|
|
9
|
+
task_id?: string;
|
|
10
|
+
error: boolean;
|
|
11
|
+
extraInfos: string;
|
|
12
|
+
createdOn?: Date;
|
|
13
|
+
updatedOn?: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.KoncileOcr = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let KoncileOcr = class KoncileOcr {
|
|
15
|
+
};
|
|
16
|
+
exports.KoncileOcr = KoncileOcr;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], KoncileOcr.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], KoncileOcr.prototype, "document_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], KoncileOcr.prototype, "template_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], KoncileOcr.prototype, "document_name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], KoncileOcr.prototype, "General_fields", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], KoncileOcr.prototype, "General_fields_list", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], KoncileOcr.prototype, "Line_fields", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], KoncileOcr.prototype, "task_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], KoncileOcr.prototype, "error", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: false, default: '' }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], KoncileOcr.prototype, "extraInfos", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], KoncileOcr.prototype, "createdOn", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], KoncileOcr.prototype, "updatedOn", void 0);
|
|
65
|
+
exports.KoncileOcr = KoncileOcr = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)('koncile_ocr')
|
|
67
|
+
], KoncileOcr);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Reference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = exports.Profiles = exports.SiteType = void 0;
|
|
3
|
+
exports.OptimizationErrorType = exports.Reference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = exports.Profiles = exports.SiteType = void 0;
|
|
4
4
|
var SiteType;
|
|
5
5
|
(function (SiteType) {
|
|
6
6
|
SiteType["CONSUMER"] = "CONSUMER";
|
|
@@ -40,3 +40,10 @@ var Reference;
|
|
|
40
40
|
(function (Reference) {
|
|
41
41
|
Reference["REFERENCE"] = "REFERENCE";
|
|
42
42
|
})(Reference || (exports.Reference = Reference = {}));
|
|
43
|
+
var OptimizationErrorType;
|
|
44
|
+
(function (OptimizationErrorType) {
|
|
45
|
+
OptimizationErrorType["INFEASIBLE"] = "infeasible";
|
|
46
|
+
OptimizationErrorType["HANDLED"] = "handled";
|
|
47
|
+
OptimizationErrorType["TIMEOUT"] = "timeout";
|
|
48
|
+
OptimizationErrorType["UNKNOWN"] = "unknown";
|
|
49
|
+
})(OptimizationErrorType || (exports.OptimizationErrorType = OptimizationErrorType = {}));
|
|
@@ -15,3 +15,21 @@ export interface KoncileUploadDocumentParams {
|
|
|
15
15
|
folderId?: number;
|
|
16
16
|
templateId?: number;
|
|
17
17
|
}
|
|
18
|
+
export interface KoncileDocumentData {
|
|
19
|
+
document_id: number;
|
|
20
|
+
template_id?: number;
|
|
21
|
+
document_name: string;
|
|
22
|
+
General_fields?: Record<string, unknown>;
|
|
23
|
+
General_fields_list?: unknown[];
|
|
24
|
+
Line_fields?: Record<string, unknown>;
|
|
25
|
+
task_id?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface KoncileDocumentList {
|
|
28
|
+
documents: KoncileDocumentData[];
|
|
29
|
+
total: number;
|
|
30
|
+
}
|
|
31
|
+
export interface KoncileFolder {
|
|
32
|
+
folder_id: number;
|
|
33
|
+
folder_name: string;
|
|
34
|
+
parent_folder_id?: number;
|
|
35
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './core/TypeORM/SiteFilter';
|
|
|
22
22
|
export * from './core/TypeORM/SpotHistory';
|
|
23
23
|
export * from './core/TypeORM/TempoHistory';
|
|
24
24
|
export * from './core/TypeORM/UsersFilters';
|
|
25
|
+
export * from './core/TypeORM/KoncileOcr';
|
|
25
26
|
export * from './core/TypeORM/WebhookOutput';
|
|
26
27
|
export { EnedisReportAcquisitionMethod, EnedisReportOperationType, } from './core/TypeORM/EnedisReportHistory';
|
|
27
28
|
export * from './core/internal/enums';
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __exportStar(require("./core/TypeORM/SiteFilter"), exports);
|
|
|
41
41
|
__exportStar(require("./core/TypeORM/SpotHistory"), exports);
|
|
42
42
|
__exportStar(require("./core/TypeORM/TempoHistory"), exports);
|
|
43
43
|
__exportStar(require("./core/TypeORM/UsersFilters"), exports);
|
|
44
|
+
__exportStar(require("./core/TypeORM/KoncileOcr"), exports);
|
|
44
45
|
__exportStar(require("./core/TypeORM/WebhookOutput"), exports);
|
|
45
46
|
// TypeORM enums
|
|
46
47
|
var EnedisReportHistory_1 = require("./core/TypeORM/EnedisReportHistory");
|