@likewatt/models 1.0.10
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/README.md +9 -0
- package/dist/core/CollectiveSite.d.ts +33 -0
- package/dist/core/CollectiveSite.js +140 -0
- package/dist/core/Scenario.d.ts +68 -0
- package/dist/core/Scenario.js +197 -0
- package/dist/core/Site.d.ts +55 -0
- package/dist/core/Site.js +250 -0
- package/dist/core/TypeORM/OkwindHistory.d.ts +8 -0
- package/dist/core/TypeORM/OkwindHistory.js +43 -0
- package/dist/core/TypeORM/Optimization.d.ts +13 -0
- package/dist/core/TypeORM/Optimization.js +63 -0
- package/dist/core/TypeORM/PvgisHistory.d.ts +8 -0
- package/dist/core/TypeORM/PvgisHistory.js +43 -0
- package/dist/core/TypeORM/TempoHistory.d.ts +7 -0
- package/dist/core/TypeORM/TempoHistory.js +39 -0
- package/dist/core/TypeORM/UsersFilters.d.ts +7 -0
- package/dist/core/TypeORM/UsersFilters.js +39 -0
- package/dist/core/TypeORM/WebhookOutput.d.ts +9 -0
- package/dist/core/TypeORM/WebhookOutput.js +51 -0
- package/dist/core/TypeORM/analysis.d.ts +12 -0
- package/dist/core/TypeORM/analysis.js +59 -0
- package/dist/core/User.d.ts +69 -0
- package/dist/core/User.js +388 -0
- package/dist/core/internal/customer-infos.model.d.ts +17 -0
- package/dist/core/internal/customer-infos.model.js +58 -0
- package/dist/core/internal/energy-price.model.d.ts +19 -0
- package/dist/core/internal/energy-price.model.js +70 -0
- package/dist/core/internal/enums.d.ts +15 -0
- package/dist/core/internal/enums.js +20 -0
- package/dist/core/internal/off-peak-hour.model.d.ts +14 -0
- package/dist/core/internal/off-peak-hour.model.js +40 -0
- package/dist/core/internal/peak-hour.model.d.ts +13 -0
- package/dist/core/internal/peak-hour.model.js +34 -0
- package/dist/core/internal/subscription-rate.model.d.ts +16 -0
- package/dist/core/internal/subscription-rate.model.js +52 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +37 -0
- package/package.json +36 -0
|
@@ -0,0 +1,250 @@
|
|
|
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.SiteSchema = exports.Site = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const mongoose_2 = require("mongoose");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const enums_1 = require("./internal/enums");
|
|
18
|
+
const energy_price_model_1 = require("./internal/energy-price.model");
|
|
19
|
+
const peak_hour_model_1 = require("./internal/peak-hour.model");
|
|
20
|
+
const off_peak_hour_model_1 = require("./internal/off-peak-hour.model");
|
|
21
|
+
const subscription_rate_model_1 = require("./internal/subscription-rate.model");
|
|
22
|
+
const customer_infos_model_1 = require("./internal/customer-infos.model");
|
|
23
|
+
let Site = class Site {
|
|
24
|
+
};
|
|
25
|
+
exports.Site = Site;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Site.prototype, "country", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ type: [energy_price_model_1.EnergyPrice] }),
|
|
34
|
+
(0, mongoose_1.Prop)({ type: [energy_price_model_1.EnergyPriceSchema], required: true }),
|
|
35
|
+
(0, class_validator_1.IsArray)(),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], Site.prototype, "energyPrices", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)(),
|
|
40
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
41
|
+
(0, class_validator_1.IsNumber)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], Site.prototype, "addressCitySIREN", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Site.prototype, "purchaseAreaOfTension", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)(),
|
|
52
|
+
(0, mongoose_1.Prop)({ type: [Number], required: true }),
|
|
53
|
+
(0, class_validator_1.IsArray)(),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], Site.prototype, "addressGeocode", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ type: [peak_hour_model_1.PeakHour] }),
|
|
58
|
+
(0, mongoose_1.Prop)({ type: [peak_hour_model_1.PeakHourSchema], required: true }),
|
|
59
|
+
(0, class_validator_1.IsArray)(),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], Site.prototype, "peakHours", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ type: [off_peak_hour_model_1.OffPeakHour] }),
|
|
64
|
+
(0, mongoose_1.Prop)({ type: [off_peak_hour_model_1.OffPeakHourSchema], required: true }),
|
|
65
|
+
(0, class_validator_1.IsArray)(),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], Site.prototype, "offPeakHours", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({ enum: enums_1.SiteType }),
|
|
70
|
+
(0, mongoose_1.Prop)({ type: String, enum: enums_1.SiteType, required: true }),
|
|
71
|
+
(0, class_validator_1.IsEnum)(enums_1.SiteType),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Site.prototype, "type", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiProperty)(),
|
|
76
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], Site.prototype, "purchaseMeterOwner", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)(),
|
|
82
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Site.prototype, "purchaseContractType", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)(),
|
|
88
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
89
|
+
(0, class_validator_1.IsString)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], Site.prototype, "description", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({ type: [subscription_rate_model_1.SubscriptionRate] }),
|
|
94
|
+
(0, mongoose_1.Prop)({ type: [subscription_rate_model_1.SubscriptionRateSchema], required: true }),
|
|
95
|
+
(0, class_validator_1.IsArray)(),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], Site.prototype, "subscriptionRates", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, swagger_1.ApiProperty)(),
|
|
100
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
101
|
+
(0, class_validator_1.IsString)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], Site.prototype, "address", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)(),
|
|
106
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
107
|
+
(0, class_validator_1.IsString)(),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], Site.prototype, "ratesOption", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiProperty)(),
|
|
112
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
113
|
+
(0, class_validator_1.IsString)(),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], Site.prototype, "owner", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiProperty)(),
|
|
118
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
119
|
+
(0, class_validator_1.IsString)(),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], Site.prototype, "name", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, swagger_1.ApiProperty)(),
|
|
124
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
125
|
+
(0, class_validator_1.IsBoolean)(),
|
|
126
|
+
__metadata("design:type", Boolean)
|
|
127
|
+
], Site.prototype, "isC_AND_I", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiProperty)(),
|
|
130
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
131
|
+
(0, class_validator_1.IsString)(),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], Site.prototype, "appUrl", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, swagger_1.ApiProperty)(),
|
|
136
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
137
|
+
(0, class_validator_1.IsNumber)(),
|
|
138
|
+
__metadata("design:type", Number)
|
|
139
|
+
], Site.prototype, "addressDepartementNum", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)(),
|
|
142
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
143
|
+
(0, class_validator_1.IsString)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], Site.prototype, "id", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, swagger_1.ApiProperty)(),
|
|
148
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
149
|
+
(0, class_validator_1.IsString)(),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], Site.prototype, "addressZipCode", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, swagger_1.ApiProperty)({ type: [energy_price_model_1.EnergyPrice] }),
|
|
154
|
+
(0, mongoose_1.Prop)({ type: [energy_price_model_1.EnergyPriceSchema], required: true }),
|
|
155
|
+
(0, class_validator_1.IsArray)(),
|
|
156
|
+
__metadata("design:type", Array)
|
|
157
|
+
], Site.prototype, "subscribedPowers", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, swagger_1.ApiProperty)(),
|
|
160
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
161
|
+
(0, class_validator_1.IsString)(),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], Site.prototype, "addressCity", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, swagger_1.ApiProperty)(),
|
|
166
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
167
|
+
(0, class_validator_1.IsString)(),
|
|
168
|
+
__metadata("design:type", String)
|
|
169
|
+
], Site.prototype, "addressDepartement", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, swagger_1.ApiProperty)(),
|
|
172
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
173
|
+
(0, class_validator_1.IsString)(),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], Site.prototype, "reportURL", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, swagger_1.ApiProperty)(),
|
|
178
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
179
|
+
(0, class_validator_1.IsString)(),
|
|
180
|
+
__metadata("design:type", String)
|
|
181
|
+
], Site.prototype, "enedisNumber", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, swagger_1.ApiProperty)(),
|
|
184
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
185
|
+
(0, class_validator_1.IsDate)(),
|
|
186
|
+
__metadata("design:type", Date)
|
|
187
|
+
], Site.prototype, "startDate", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, swagger_1.ApiProperty)(),
|
|
190
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
191
|
+
(0, class_validator_1.IsDate)(),
|
|
192
|
+
__metadata("design:type", Date)
|
|
193
|
+
], Site.prototype, "endDate", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
196
|
+
(0, mongoose_1.Prop)(),
|
|
197
|
+
(0, class_validator_1.IsOptional)(),
|
|
198
|
+
(0, class_validator_1.IsString)(),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], Site.prototype, "automaticUpdateError", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
203
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Scenario' }),
|
|
204
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
205
|
+
], Site.prototype, "scenario", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, swagger_1.ApiProperty)(),
|
|
208
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
209
|
+
(0, class_validator_1.IsString)(),
|
|
210
|
+
__metadata("design:type", String)
|
|
211
|
+
], Site.prototype, "user", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, swagger_1.ApiProperty)({ enum: enums_1.Profiles }),
|
|
214
|
+
(0, mongoose_1.Prop)({ type: String, enum: enums_1.Profiles, required: true }),
|
|
215
|
+
(0, class_validator_1.IsEnum)(enums_1.Profiles),
|
|
216
|
+
__metadata("design:type", String)
|
|
217
|
+
], Site.prototype, "profile", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
220
|
+
(0, mongoose_1.Prop)(),
|
|
221
|
+
(0, class_validator_1.IsOptional)(),
|
|
222
|
+
(0, class_validator_1.IsString)(),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], Site.prototype, "collectiveSiteId", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, swagger_1.ApiProperty)(),
|
|
227
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
228
|
+
(0, class_validator_1.IsString)(),
|
|
229
|
+
__metadata("design:type", String)
|
|
230
|
+
], Site.prototype, "initialOwner", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
233
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
234
|
+
(0, class_validator_1.IsOptional)(),
|
|
235
|
+
(0, class_validator_1.IsBoolean)(),
|
|
236
|
+
__metadata("design:type", Boolean)
|
|
237
|
+
], Site.prototype, "isExtractingData", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
(0, swagger_1.ApiPropertyOptional)({ type: customer_infos_model_1.CustomerInfos }),
|
|
240
|
+
(0, mongoose_1.Prop)({ type: customer_infos_model_1.CustomerInfosSchema }),
|
|
241
|
+
(0, class_validator_1.IsOptional)(),
|
|
242
|
+
__metadata("design:type", customer_infos_model_1.CustomerInfos)
|
|
243
|
+
], Site.prototype, "customerInfos", void 0);
|
|
244
|
+
exports.Site = Site = __decorate([
|
|
245
|
+
(0, mongoose_1.Schema)({
|
|
246
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
247
|
+
toObject: { virtuals: true, versionKey: false },
|
|
248
|
+
})
|
|
249
|
+
], Site);
|
|
250
|
+
exports.SiteSchema = mongoose_1.SchemaFactory.createForClass(Site);
|
|
@@ -0,0 +1,43 @@
|
|
|
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.OkwindHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let OkwindHistory = class OkwindHistory {
|
|
15
|
+
};
|
|
16
|
+
exports.OkwindHistory = OkwindHistory;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], OkwindHistory.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], OkwindHistory.prototype, "result", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], OkwindHistory.prototype, "error", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false, default: '' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], OkwindHistory.prototype, "extraInfos", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], OkwindHistory.prototype, "createdOn", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], OkwindHistory.prototype, "updatedOn", void 0);
|
|
41
|
+
exports.OkwindHistory = OkwindHistory = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)()
|
|
43
|
+
], OkwindHistory);
|
|
@@ -0,0 +1,63 @@
|
|
|
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.Optimization = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let Optimization = class Optimization {
|
|
15
|
+
};
|
|
16
|
+
exports.Optimization = Optimization;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Optimization.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false, default: 'unknown' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Optimization.prototype, "idUser", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: false, default: 'unknown' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Optimization.prototype, "type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Optimization.prototype, "idSite", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Optimization.prototype, "idScenario", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false, default: 'created' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Optimization.prototype, "status", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: false, default: 0 }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Optimization.prototype, "step", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], Optimization.prototype, "error", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], Optimization.prototype, "finishedOn", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], Optimization.prototype, "createdOn", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], Optimization.prototype, "updatedOn", void 0);
|
|
61
|
+
exports.Optimization = Optimization = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)()
|
|
63
|
+
], Optimization);
|
|
@@ -0,0 +1,43 @@
|
|
|
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.PvgisHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PvgisHistory = class PvgisHistory {
|
|
15
|
+
};
|
|
16
|
+
exports.PvgisHistory = PvgisHistory;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], PvgisHistory.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PvgisHistory.prototype, "result", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], PvgisHistory.prototype, "error", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false, default: '' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PvgisHistory.prototype, "extraInfos", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], PvgisHistory.prototype, "createdOn", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], PvgisHistory.prototype, "updatedOn", void 0);
|
|
41
|
+
exports.PvgisHistory = PvgisHistory = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)()
|
|
43
|
+
], PvgisHistory);
|
|
@@ -0,0 +1,39 @@
|
|
|
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.TempoHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let TempoHistory = class TempoHistory {
|
|
15
|
+
};
|
|
16
|
+
exports.TempoHistory = TempoHistory;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], TempoHistory.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], TempoHistory.prototype, "error", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: false, default: '' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TempoHistory.prototype, "extraInfos", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], TempoHistory.prototype, "createdOn", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], TempoHistory.prototype, "updatedOn", void 0);
|
|
37
|
+
exports.TempoHistory = TempoHistory = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)()
|
|
39
|
+
], TempoHistory);
|
|
@@ -0,0 +1,39 @@
|
|
|
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.UserFilters = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let UserFilters = class UserFilters {
|
|
15
|
+
};
|
|
16
|
+
exports.UserFilters = UserFilters;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UserFilters.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UserFilters.prototype, "fullName", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UserFilters.prototype, "email", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], UserFilters.prototype, "createdOn", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], UserFilters.prototype, "updatedOn", void 0);
|
|
37
|
+
exports.UserFilters = UserFilters = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)()
|
|
39
|
+
], UserFilters);
|
|
@@ -0,0 +1,51 @@
|
|
|
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.WebhookOutput = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class WebhookOutput {
|
|
15
|
+
}
|
|
16
|
+
exports.WebhookOutput = WebhookOutput;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], WebhookOutput.prototype, "firstname", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], WebhookOutput.prototype, "lastname", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WebhookOutput.prototype, "zip", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], WebhookOutput.prototype, "address", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], WebhookOutput.prototype, "city", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsEmail)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], WebhookOutput.prototype, "email", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], WebhookOutput.prototype, "phone", void 0);
|
|
@@ -0,0 +1,59 @@
|
|
|
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.Analysis = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let Analysis = class Analysis {
|
|
15
|
+
};
|
|
16
|
+
exports.Analysis = Analysis;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Analysis.prototype, "uid", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false, default: 'unknown' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Analysis.prototype, "idUser", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: false, default: '' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Analysis.prototype, "idSite", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false, default: '' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Analysis.prototype, "idCollectiveSite", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: false, default: 'created' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Analysis.prototype, "status", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false, default: 0 }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Analysis.prototype, "step", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], Analysis.prototype, "error", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], Analysis.prototype, "finishedOn", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], Analysis.prototype, "createdOn", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], Analysis.prototype, "updatedOn", void 0);
|
|
57
|
+
exports.Analysis = Analysis = __decorate([
|
|
58
|
+
(0, typeorm_1.Entity)()
|
|
59
|
+
], Analysis);
|