@likewatt/models 1.1.4 → 1.1.6

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.
@@ -11,7 +11,7 @@ import { Tarif } from './internal/tarif';
11
11
  export declare class DefaultRate {
12
12
  _id: Types.ObjectId;
13
13
  name?: string;
14
- rateId: Types.ObjectId;
14
+ userId: Types.ObjectId;
15
15
  rates: Tarif[];
16
16
  restOfTheYear: RestOfTheYearTarifs;
17
17
  }
@@ -48,14 +48,14 @@ __decorate([
48
48
  ], DefaultRate.prototype, "name", void 0);
49
49
  __decorate([
50
50
  (0, swagger_1.ApiProperty)({
51
- description: 'ID du tarif associé',
51
+ description: 'Identifiant unique MongoDB de l’utilisateur propriétaire du tarif par défaut',
52
52
  example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
53
53
  type: String,
54
54
  }),
55
- (0, mongoose_2.Prop)({ type: mongoose_1.Types.ObjectId, ref: 'Rate' }),
55
+ (0, mongoose_2.Prop)({ type: mongoose_1.Types.ObjectId, ref: 'User' }),
56
56
  (0, class_validator_1.IsOptional)(),
57
57
  __metadata("design:type", mongoose_1.Types.ObjectId)
58
- ], DefaultRate.prototype, "rateId", void 0);
58
+ ], DefaultRate.prototype, "userId", void 0);
59
59
  __decorate([
60
60
  (0, swagger_1.ApiProperty)({ type: [tarif_1.Tarif] }),
61
61
  (0, mongoose_2.Prop)({ required: true }),
@@ -9,7 +9,7 @@ export declare enum EnedisReportOperationType {
9
9
  UPDATE = "UPDATE"
10
10
  }
11
11
  export declare class EnedisReportHistory {
12
- id: string;
12
+ uid: string;
13
13
  siteId: string;
14
14
  user: string;
15
15
  reportOperation: EnedisReportOperationType;
@@ -29,7 +29,7 @@ exports.EnedisReportHistory = EnedisReportHistory;
29
29
  __decorate([
30
30
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
31
31
  __metadata("design:type", String)
32
- ], EnedisReportHistory.prototype, "id", void 0);
32
+ ], EnedisReportHistory.prototype, "uid", void 0);
33
33
  __decorate([
34
34
  (0, typeorm_1.Column)({ nullable: false }),
35
35
  __metadata("design:type", String)
@@ -4,7 +4,7 @@ import { Tarif } from './Tarif.types';
4
4
  export interface DefaultRate {
5
5
  _id?: string;
6
6
  name?: string;
7
- rateId: Types.ObjectId;
7
+ userId?: Types.ObjectId;
8
8
  rates: Tarif[];
9
9
  restOfTheYear: RestOfTheYearTarifs;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {