@likewatt/models 1.0.59 → 1.0.61

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.
@@ -247,22 +247,29 @@ let ConfigSite = class ConfigSite {
247
247
  exports.ConfigSite = ConfigSite;
248
248
  __decorate([
249
249
  (0, swagger_1.ApiProperty)({ example: 'REFERENCE', required: false }),
250
- (0, mongoose_1.Prop)({ required: false }) // Keep this
251
- ,
250
+ (0, mongoose_1.Prop)({ required: false }),
252
251
  (0, class_validator_1.IsOptional)(),
253
252
  (0, class_validator_1.IsString)(),
254
253
  __metadata("design:type", String)
255
254
  ], ConfigSite.prototype, "consumptionReference", void 0);
256
255
  __decorate([
257
256
  (0, swagger_1.ApiProperty)({ type: [DemandMultiplierSlot], required: false }),
258
- (0, mongoose_1.Prop)({ type: [exports.DemandMultiplierSlotSchema], required: false }),
257
+ (0, mongoose_1.Prop)({
258
+ type: [exports.DemandMultiplierSlotSchema],
259
+ required: false,
260
+ default: undefined,
261
+ }),
259
262
  (0, class_validator_1.IsOptional)(),
260
263
  (0, class_validator_1.IsArray)(),
261
264
  __metadata("design:type", Array)
262
265
  ], ConfigSite.prototype, "demandMultiplierSlots", void 0);
263
266
  __decorate([
264
267
  (0, swagger_1.ApiProperty)({ type: [RateOfGrowth], required: false }),
265
- (0, mongoose_1.Prop)({ type: [exports.RateOfGrowthSchema], required: false }),
268
+ (0, mongoose_1.Prop)({
269
+ type: [exports.RateOfGrowthSchema],
270
+ required: false,
271
+ default: undefined,
272
+ }),
266
273
  (0, class_validator_1.IsOptional)(),
267
274
  (0, class_validator_1.IsArray)(),
268
275
  __metadata("design:type", Array)
@@ -296,7 +303,7 @@ __decorate([
296
303
  __metadata("design:type", ConfigScenario)
297
304
  ], Scenario.prototype, "configScenario", void 0);
298
305
  __decorate([
299
- (0, swagger_1.ApiPropertyOptional)(),
306
+ (0, swagger_1.ApiPropertyOptional)({ type: ConfigSite }),
300
307
  (0, mongoose_1.Prop)({
301
308
  type: exports.ConfigSiteSchema, // Use the schema, not Mixed
302
309
  required: true, // Make configSite required
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {