@likewatt/models-front 1.25.0 → 1.27.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.
@@ -0,0 +1,23 @@
1
+ export type LeadThemeConfig = {
2
+ logoUrl?: string;
3
+ backgroundImageUrl?: string;
4
+ primaryColor?: string;
5
+ secondaryColor?: string;
6
+ accentColor?: string;
7
+ };
8
+ export type LeadTenant = {
9
+ _id: string;
10
+ tenantId: string;
11
+ subdomain: string;
12
+ domain: string;
13
+ defaultScenarioIds: string[];
14
+ theme?: LeadThemeConfig;
15
+ isActive: boolean;
16
+ /**
17
+ * Virtual Mongoose exposé via toJSON.virtuals = true
18
+ * https://{subdomain}.{domain}
19
+ */
20
+ publicBaseUrl: string;
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -37,8 +37,8 @@ export declare class Technology {
37
37
  export declare class Pv {
38
38
  id: string;
39
39
  name: string;
40
+ counterId?: string;
40
41
  settings: Record<string, unknown>;
41
- index?: number;
42
42
  type?: number;
43
43
  }
44
44
  export declare class ConfigScenario {
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './core/Scenario.type';
8
8
  export * from './core/ScenarioDefaultValue.types';
9
9
  export * from './core/Site.types';
10
10
  export * from './core/User.type';
11
+ export * from './core/Leads.type';
11
12
  export * from './scenario/BatteryParams.types';
12
13
  export * from './scenario/ConversionParams.types';
13
14
  export * from './scenario/DefaultPPATarif.types';
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ __exportStar(require("./core/Scenario.type"), exports);
25
25
  __exportStar(require("./core/ScenarioDefaultValue.types"), exports);
26
26
  __exportStar(require("./core/Site.types"), exports);
27
27
  __exportStar(require("./core/User.type"), exports);
28
+ __exportStar(require("./core/Leads.type"), exports);
28
29
  // Scenario exports
29
30
  __exportStar(require("./scenario/BatteryParams.types"), exports);
30
31
  __exportStar(require("./scenario/ConversionParams.types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.25.0",
3
+ "version": "1.27.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",