@likewatt/models 1.144.1 → 1.145.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.
@@ -37,6 +37,7 @@ export declare class CollectiveSite {
37
37
  auroraProjectId?: string | null;
38
38
  demoTemplateSourceId?: string;
39
39
  consentUploadEnabled?: boolean;
40
+ consentFraudConsentId?: string | null;
40
41
  deletedAt?: Date | null;
41
42
  createdAt?: Date | string;
42
43
  updatedAt?: Date | string;
@@ -254,6 +254,15 @@ __decorate([
254
254
  (0, class_validator_1.IsBoolean)(),
255
255
  __metadata("design:type", Boolean)
256
256
  ], CollectiveSite.prototype, "consentUploadEnabled", void 0);
257
+ __decorate([
258
+ (0, swagger_1.ApiPropertyOptional)({
259
+ description: "Demande de consentement groupée jugée Fraude avant toute création de compteur : bloque le collectif jusqu'à revue Légitime",
260
+ }),
261
+ (0, mongoose_1.Prop)({ type: String, required: false }),
262
+ (0, class_validator_1.IsOptional)(),
263
+ (0, class_validator_1.IsString)(),
264
+ __metadata("design:type", Object)
265
+ ], CollectiveSite.prototype, "consentFraudConsentId", void 0);
257
266
  __decorate([
258
267
  (0, swagger_1.ApiPropertyOptional)({
259
268
  description: 'Date de suppression (passage au compte support) ; absente ou null = projet actif. Posée et effacée par la gateway.',
@@ -66,6 +66,7 @@ export declare class Consent {
66
66
  collectiveSiteId?: string;
67
67
  meterRows?: ConsentMeterRow[];
68
68
  metersGeneratedAt?: Date;
69
+ network?: 'ENEDIS' | 'STRASBOURG';
69
70
  fileKey?: string;
70
71
  via?: 'email' | 'upload';
71
72
  isValidateConsent?: boolean;
@@ -262,7 +262,12 @@ __decorate([
262
262
  ], Consent.prototype, "pdls", void 0);
263
263
  __decorate([
264
264
  (0, swagger_1.ApiPropertyOptional)({ description: 'Projet collectif couvert (cas ACC)' }),
265
- (0, mongoose_1.Prop)({ type: String, ref: 'CollectiveSite', required: false }),
265
+ (0, mongoose_1.Prop)({
266
+ type: String,
267
+ ref: 'CollectiveSite',
268
+ required: false,
269
+ index: true,
270
+ }),
266
271
  (0, class_validator_1.IsOptional)(),
267
272
  (0, class_validator_1.IsString)(),
268
273
  __metadata("design:type", String)
@@ -288,6 +293,17 @@ __decorate([
288
293
  (0, class_validator_1.IsDate)(),
289
294
  __metadata("design:type", Date)
290
295
  ], Consent.prototype, "metersGeneratedAt", void 0);
296
+ __decorate([
297
+ (0, swagger_1.ApiPropertyOptional)({
298
+ description: "Gestionnaire de réseau des PDL d'une demande ACC groupée, " +
299
+ 'déduit de leur format (une demande ne mélange jamais les deux).',
300
+ enum: ['ENEDIS', 'STRASBOURG'],
301
+ }),
302
+ (0, mongoose_1.Prop)({ type: String, enum: ['ENEDIS', 'STRASBOURG'], required: false }),
303
+ (0, class_validator_1.IsOptional)(),
304
+ (0, class_validator_1.IsIn)(['ENEDIS', 'STRASBOURG']),
305
+ __metadata("design:type", String)
306
+ ], Consent.prototype, "network", void 0);
291
307
  __decorate([
292
308
  (0, swagger_1.ApiPropertyOptional)({
293
309
  description: 'Clé du fichier de consentement (voie upload)',
@@ -23,7 +23,7 @@ export declare class Rights {
23
23
  deleteSites: boolean;
24
24
  viewLeads: boolean;
25
25
  editScenarioTypes: boolean;
26
- useAurora: boolean;
26
+ useAurora?: boolean;
27
27
  }
28
28
  export declare const RightsSchema: import("mongoose").Schema<Rights, import("mongoose").Model<Rights, any, any, any, Document<unknown, any, Rights, any, {}> & Rights & {
29
29
  _id: import("mongoose").Types.ObjectId;
package/dist/core/User.js CHANGED
@@ -85,11 +85,12 @@ __decorate([
85
85
  __metadata("design:type", Boolean)
86
86
  ], Rights.prototype, "editScenarioTypes", void 0);
87
87
  __decorate([
88
- (0, swagger_1.ApiProperty)({
89
- description: "Indique si l'utilisateur peut utiliser le calepinage Aurora (crédits du titulaire)",
88
+ (0, swagger_1.ApiPropertyOptional)({
89
+ description: "Droit d'un membre au calepinage Aurora. Absent = pas encore choisi par le titulaire : autorisé pendant l'essai gratuit, refusé après. Sans valeur par défaut : un défaut false serait lu (et écrit à la création) comme un décochage.",
90
90
  example: true,
91
91
  }),
92
- (0, mongoose_1.Prop)({ type: Boolean, required: true, default: false }),
92
+ (0, mongoose_1.Prop)({ type: Boolean, required: false }),
93
+ (0, class_validator_1.IsOptional)(),
93
94
  (0, class_validator_1.IsBoolean)(),
94
95
  __metadata("design:type", Boolean)
95
96
  ], Rights.prototype, "useAurora", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.144.1",
3
+ "version": "1.145.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {