@likewatt/models 1.0.31 → 1.0.32

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 { Types, Document } from 'mongoose';
1
+ import { Document } 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';
@@ -39,7 +39,6 @@ export declare enum ConsumptionReference {
39
39
  CUSTOM = "CUSTOM"
40
40
  }
41
41
  export declare class ScenarioDefaultValue {
42
- readonly _id: Types.ObjectId;
43
42
  defaultPPATarif: DefaultPPATarif;
44
43
  VERSION: number;
45
44
  version: number;
@@ -84,12 +83,12 @@ export declare class ScenarioDefaultValue {
84
83
  updatedAt?: Date;
85
84
  }
86
85
  export type ScenarioDefaultValueDocument = ScenarioDefaultValue & Document;
87
- export declare const ScenarioDefaultValueSchema: import("mongoose").Schema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any> & ScenarioDefaultValue & Required<{
88
- _id: Types.ObjectId;
89
- }> & {
86
+ export declare const ScenarioDefaultValueSchema: import("mongoose").Schema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any> & ScenarioDefaultValue & {
87
+ _id: import("mongoose").Types.ObjectId;
88
+ } & {
90
89
  __v: number;
91
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScenarioDefaultValue, Document<unknown, {}, import("mongoose").FlatRecord<ScenarioDefaultValue>, {}> & import("mongoose").FlatRecord<ScenarioDefaultValue> & Required<{
92
- _id: Types.ObjectId;
93
- }> & {
90
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScenarioDefaultValue, Document<unknown, {}, import("mongoose").FlatRecord<ScenarioDefaultValue>, {}> & import("mongoose").FlatRecord<ScenarioDefaultValue> & {
91
+ _id: import("mongoose").Types.ObjectId;
92
+ } & {
94
93
  __v: number;
95
94
  }>;
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ScenarioDefaultValueSchema = exports.ScenarioDefaultValue = exports.ConsumptionReference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = void 0;
13
13
  const mongoose_1 = require("@nestjs/mongoose");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
- const mongoose_2 = require("mongoose");
16
15
  const class_validator_1 = require("class-validator");
17
16
  const default_ppa_tarif_1 = require("./internal/default-ppa-tarif");
18
17
  const power_cost_config_1 = require("./internal/power-cost-config");
@@ -60,15 +59,6 @@ var ConsumptionReference;
60
59
  let ScenarioDefaultValue = class ScenarioDefaultValue {
61
60
  };
62
61
  exports.ScenarioDefaultValue = ScenarioDefaultValue;
63
- __decorate([
64
- (0, swagger_1.ApiProperty)({
65
- description: 'Identifiant unique MongoDB',
66
- example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
67
- type: mongoose_2.Types.ObjectId,
68
- readOnly: true,
69
- }),
70
- __metadata("design:type", mongoose_2.Types.ObjectId)
71
- ], ScenarioDefaultValue.prototype, "_id", void 0);
72
62
  __decorate([
73
63
  (0, swagger_1.ApiProperty)({ type: default_ppa_tarif_1.DefaultPPATarif }),
74
64
  (0, mongoose_1.Prop)({ type: default_ppa_tarif_1.DefaultPPATarif, required: true }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {