@likewatt/models 1.111.0 → 1.113.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.
@@ -2,7 +2,8 @@ import { Document } from 'mongoose';
2
2
  /**
3
3
  * Quota d'essai OCR Koncile, un document par compte PRINCIPAL.
4
4
  * - config admin (`enabled`, `limit`) : ne touche JAMAIS `count`
5
- * - incrément upload DONE (`count`) : ne touche JAMAIS `enabled`/`limit`
5
+ * - `count` : imports facturés du mois courant (reset mensuel par cron)
6
+ * - `totalCount` : total cumulé d'imports facturés, jamais reset
6
7
  * Absence de doc = pas d'accès (désactivé par défaut).
7
8
  */
8
9
  export declare class KoncileOcrAccess {
@@ -11,6 +12,7 @@ export declare class KoncileOcrAccess {
11
12
  enabled: boolean;
12
13
  limit: number;
13
14
  count: number;
15
+ totalCount: number;
14
16
  }
15
17
  export type KoncileOcrAccessDocument = KoncileOcrAccess & Document;
16
18
  export declare const KoncileOcrAccessSchema: import("mongoose").Schema<KoncileOcrAccess, import("mongoose").Model<KoncileOcrAccess, any, any, any, Document<unknown, any, KoncileOcrAccess, any, {}> & KoncileOcrAccess & Required<{
@@ -17,7 +17,8 @@ const class_validator_1 = require("class-validator");
17
17
  /**
18
18
  * Quota d'essai OCR Koncile, un document par compte PRINCIPAL.
19
19
  * - config admin (`enabled`, `limit`) : ne touche JAMAIS `count`
20
- * - incrément upload DONE (`count`) : ne touche JAMAIS `enabled`/`limit`
20
+ * - `count` : imports facturés du mois courant (reset mensuel par cron)
21
+ * - `totalCount` : total cumulé d'imports facturés, jamais reset
21
22
  * Absence de doc = pas d'accès (désactivé par défaut).
22
23
  */
23
24
  let KoncileOcrAccess = class KoncileOcrAccess {
@@ -76,6 +77,17 @@ __decorate([
76
77
  (0, class_validator_1.Min)(0),
77
78
  __metadata("design:type", Number)
78
79
  ], KoncileOcrAccess.prototype, "count", void 0);
80
+ __decorate([
81
+ (0, swagger_1.ApiProperty)({
82
+ description: "Total cumulé d'imports facturés depuis toujours (jamais reset)",
83
+ example: 0,
84
+ }),
85
+ (0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
86
+ (0, class_validator_1.IsOptional)(),
87
+ (0, class_validator_1.IsNumber)(),
88
+ (0, class_validator_1.Min)(0),
89
+ __metadata("design:type", Number)
90
+ ], KoncileOcrAccess.prototype, "totalCount", void 0);
79
91
  exports.KoncileOcrAccess = KoncileOcrAccess = __decorate([
80
92
  (0, mongoose_1.Schema)({
81
93
  id: false,
@@ -11,6 +11,7 @@ export declare class BatteryParams {
11
11
  batteryDegradRate: number;
12
12
  batteryLeasingLifespan: number;
13
13
  batteryDepreciationDuration: number;
14
+ hybridInverter: boolean;
14
15
  }
15
16
  export declare const BatteryParamsSchema: import("mongoose").Schema<BatteryParams, import("mongoose").Model<BatteryParams, any, any, any, import("mongoose").Document<unknown, any, BatteryParams, any, {}> & BatteryParams & {
16
17
  _id: import("mongoose").Types.ObjectId;
@@ -75,6 +75,11 @@ __decorate([
75
75
  (0, class_validator_1.IsNumber)(),
76
76
  __metadata("design:type", Number)
77
77
  ], BatteryParams.prototype, "batteryDepreciationDuration", void 0);
78
+ __decorate([
79
+ (0, mongoose_1.Prop)({ required: true, default: false }),
80
+ (0, class_validator_1.IsBoolean)(),
81
+ __metadata("design:type", Boolean)
82
+ ], BatteryParams.prototype, "hybridInverter", void 0);
78
83
  exports.BatteryParams = BatteryParams = __decorate([
79
84
  (0, mongoose_1.Schema)({ _id: false })
80
85
  ], BatteryParams);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.111.0",
3
+ "version": "1.113.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {