@likewatt/models 1.103.0 → 1.104.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.
@@ -32,8 +32,6 @@ export declare class Consent {
32
32
  identityMismatch?: boolean;
33
33
  forged?: boolean;
34
34
  flagReason?: string;
35
- prmConsent?: boolean;
36
- likewattlogo?: string;
37
35
  }
38
36
  export type ConsentDocument = Consent & Document;
39
37
  export declare const ConsentSchema: import("mongoose").Schema<Consent, import("mongoose").Model<Consent, any, any, any, Document<unknown, any, Consent, any, {}> & Consent & Required<{
@@ -256,20 +256,6 @@ __decorate([
256
256
  (0, class_validator_1.IsString)(),
257
257
  __metadata("design:type", String)
258
258
  ], Consent.prototype, "flagReason", void 0);
259
- __decorate([
260
- (0, swagger_1.ApiPropertyOptional)({ description: 'Consentement PRM (legacy)' }),
261
- (0, mongoose_1.Prop)({ type: Boolean, required: false }),
262
- (0, class_validator_1.IsOptional)(),
263
- (0, class_validator_1.IsBoolean)(),
264
- __metadata("design:type", Boolean)
265
- ], Consent.prototype, "prmConsent", void 0);
266
- __decorate([
267
- (0, swagger_1.ApiPropertyOptional)({ description: 'Logo Likewatt (legacy)' }),
268
- (0, mongoose_1.Prop)({ type: String, required: false }),
269
- (0, class_validator_1.IsOptional)(),
270
- (0, class_validator_1.IsString)(),
271
- __metadata("design:type", String)
272
- ], Consent.prototype, "likewattlogo", void 0);
273
259
  exports.Consent = Consent = __decorate([
274
260
  (0, mongoose_1.Schema)({
275
261
  id: false,
@@ -279,6 +265,8 @@ exports.Consent = Consent = __decorate([
279
265
  })
280
266
  ], Consent);
281
267
  exports.ConsentSchema = mongoose_1.SchemaFactory.createForClass(Consent);
268
+ // Index pour la requête de couverture anti-fraude (workspace + PDL couvert)
269
+ exports.ConsentSchema.index({ workspaceId: 1, pdls: 1 });
282
270
  // Hook pre-save pour générer automatiquement un UUID si _id n'est pas fourni
283
271
  exports.ConsentSchema.pre('save', function (next) {
284
272
  if (!this._id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.103.0",
3
+ "version": "1.104.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {