@likewatt/models 1.27.0 → 1.29.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.
@@ -25,6 +25,7 @@ export declare class ScenarioDefaultValue {
25
25
  VERSION: number;
26
26
  version: number;
27
27
  SURPLUS_COSTS: PowerCostConfig[];
28
+ BTINF_COSTS: PowerCostConfig[];
28
29
  FULL_PRODUCTION_COSTS: PowerCostConfig[];
29
30
  paramsBattery: BatteryParams;
30
31
  paramsConversion: ConversionParams;
@@ -69,6 +69,12 @@ __decorate([
69
69
  (0, class_validator_1.IsArray)(),
70
70
  __metadata("design:type", Array)
71
71
  ], ScenarioDefaultValue.prototype, "SURPLUS_COSTS", void 0);
72
+ __decorate([
73
+ (0, swagger_1.ApiProperty)({ type: [power_cost_config_1.PowerCostConfig] }),
74
+ (0, mongoose_1.Prop)({ type: [power_cost_config_1.PowerCostConfig], required: true }),
75
+ (0, class_validator_1.IsArray)(),
76
+ __metadata("design:type", Array)
77
+ ], ScenarioDefaultValue.prototype, "BTINF_COSTS", void 0);
72
78
  __decorate([
73
79
  (0, swagger_1.ApiProperty)({ type: [power_cost_config_1.PowerCostConfig] }),
74
80
  (0, mongoose_1.Prop)({ type: [power_cost_config_1.PowerCostConfig], required: true }),
@@ -44,6 +44,7 @@ export declare class Subscription {
44
44
  status: SubscriptionStatus;
45
45
  plan: SubscriptionPlan;
46
46
  billingCycle: BillingCycle;
47
+ domain: string;
47
48
  currentPeriodStart: Date;
48
49
  currentPeriodEnd: Date;
49
50
  cancelAtPeriodEnd: boolean;
@@ -154,6 +154,15 @@ __decorate([
154
154
  (0, class_validator_1.IsEnum)(BillingCycle),
155
155
  __metadata("design:type", String)
156
156
  ], Subscription.prototype, "billingCycle", void 0);
157
+ __decorate([
158
+ (0, swagger_1.ApiProperty)({
159
+ description: 'Domaine du plan (BTINF ou BTSUP)',
160
+ example: 'BTINF',
161
+ }),
162
+ (0, mongoose_1.Prop)({ type: String, required: true }),
163
+ (0, class_validator_1.IsString)(),
164
+ __metadata("design:type", String)
165
+ ], Subscription.prototype, "domain", void 0);
157
166
  __decorate([
158
167
  (0, swagger_1.ApiProperty)({
159
168
  description: 'Début de la période courante',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.27.0",
3
+ "version": "1.29.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {