@likewatt/models 1.0.39 → 1.0.40

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.
@@ -1,4 +1,4 @@
1
- import { Document } from 'mongoose';
1
+ import { Document, Schema as MSchema } from 'mongoose';
2
2
  import { DefaultPPATarif } from './internal/default-ppa-tarif';
3
3
  import { PowerCostConfig } from './internal/power-cost-config';
4
4
  import { BatteryParams } from './internal/battery-params';
@@ -63,7 +63,7 @@ export declare class ScenarioDefaultValue {
63
63
  updatedAt?: Date;
64
64
  }
65
65
  export type ScenarioDefaultValueDocument = ScenarioDefaultValue & Document;
66
- export declare const ScenarioDefaultValueSchema: import("mongoose").Schema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any> & ScenarioDefaultValue & {
66
+ export declare const ScenarioDefaultValueSchema: MSchema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any> & ScenarioDefaultValue & {
67
67
  _id: import("mongoose").Types.ObjectId;
68
68
  } & {
69
69
  __v: number;
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ScenarioDefaultValueSchema = exports.ScenarioDefaultValue = void 0;
13
13
  const mongoose_1 = require("@nestjs/mongoose");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
+ const mongoose_2 = require("mongoose");
15
16
  const class_validator_1 = require("class-validator");
16
17
  const default_ppa_tarif_1 = require("./internal/default-ppa-tarif");
17
18
  const power_cost_config_1 = require("./internal/power-cost-config");
@@ -167,7 +168,7 @@ __decorate([
167
168
  ], ScenarioDefaultValue.prototype, "financingType", void 0);
168
169
  __decorate([
169
170
  (0, swagger_1.ApiPropertyOptional)(),
170
- (0, mongoose_1.Prop)(),
171
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Mixed }),
171
172
  (0, class_validator_1.IsOptional)(),
172
173
  (0, class_validator_1.IsObject)(),
173
174
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {