@likewatt/models 1.127.0 → 1.129.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.
@@ -131,6 +131,7 @@ export declare class ChargingStationParam {
131
131
  numberOfUnits: number;
132
132
  power: number;
133
133
  capex: number;
134
+ depreciationDuration?: number;
134
135
  settings?: ChargingStationSlotParam[];
135
136
  }
136
137
  export declare const ChargingStationParamSchema: MSchema<ChargingStationParam, import("mongoose").Model<ChargingStationParam, any, any, any, Document<unknown, any, ChargingStationParam, any, {}> & ChargingStationParam & {
@@ -364,6 +364,13 @@ __decorate([
364
364
  (0, class_validator_1.IsNumber)(),
365
365
  __metadata("design:type", Number)
366
366
  ], ChargingStationParam.prototype, "capex", void 0);
367
+ __decorate([
368
+ (0, swagger_1.ApiPropertyOptional)({ example: 25 }),
369
+ (0, mongoose_1.Prop)({ required: false }),
370
+ (0, class_validator_1.IsOptional)(),
371
+ (0, class_validator_1.IsNumber)(),
372
+ __metadata("design:type", Number)
373
+ ], ChargingStationParam.prototype, "depreciationDuration", void 0);
367
374
  __decorate([
368
375
  (0, swagger_1.ApiProperty)({ type: [ChargingStationSlotParam] }),
369
376
  (0, mongoose_1.Prop)({
@@ -128,6 +128,8 @@ export declare class User {
128
128
  maxUsers?: number;
129
129
  trackerOkd: boolean;
130
130
  auroraEnabled: boolean;
131
+ auroraPartnerId?: string | null;
132
+ auroraUserId?: string | null;
131
133
  isSignUpEmailSent: boolean;
132
134
  isAdminEmailSent: boolean;
133
135
  automaticRenew: boolean;
package/dist/core/User.js CHANGED
@@ -596,6 +596,28 @@ __decorate([
596
596
  (0, class_validator_1.IsBoolean)(),
597
597
  __metadata("design:type", Boolean)
598
598
  ], User.prototype, "auroraEnabled", void 0);
599
+ __decorate([
600
+ (0, swagger_1.ApiPropertyOptional)({
601
+ description: 'Identifiant du Partner Aurora Solar de l’organisation (1 Partner par compte principal, clé = principalId). Posé sur le compte principal, provisionné paresseusement au premier usage Aurora, puis réutilisé. Garant de l’isolation multi-comptes (les projets sont scopés à ce partner_id).',
602
+ type: String,
603
+ nullable: true,
604
+ }),
605
+ (0, mongoose_1.Prop)({ type: String, default: null }),
606
+ (0, class_validator_1.IsOptional)(),
607
+ (0, class_validator_1.IsString)(),
608
+ __metadata("design:type", Object)
609
+ ], User.prototype, "auroraPartnerId", void 0);
610
+ __decorate([
611
+ (0, swagger_1.ApiPropertyOptional)({
612
+ description: 'Identifiant de l’utilisateur Aurora Solar correspondant (external_provider_id = _id Likewatt). Provisionné paresseusement, rattaché au Partner de l’organisation avec un rôle non-Admin. Alimente le SSO/iframe scopé à l’organisation.',
613
+ type: String,
614
+ nullable: true,
615
+ }),
616
+ (0, mongoose_1.Prop)({ type: String, default: null }),
617
+ (0, class_validator_1.IsOptional)(),
618
+ (0, class_validator_1.IsString)(),
619
+ __metadata("design:type", Object)
620
+ ], User.prototype, "auroraUserId", void 0);
599
621
  __decorate([
600
622
  (0, swagger_1.ApiProperty)({
601
623
  description: 'E-mail de création envoyé',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.127.0",
3
+ "version": "1.129.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {