@likewatt/models-front 1.69.0 → 1.71.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,8 @@
1
+ import { RetryHint } from '../site/enums.types';
2
+ export interface MicroserviceErrorPayload {
3
+ statusCode: number;
4
+ message: string;
5
+ errorCode?: string;
6
+ source?: string;
7
+ retryHint: RetryHint;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,7 +5,7 @@ import { CustomerInfos } from '../site/CustomerInfos.types';
5
5
  import { DataSourceHistory } from '../site/DataSourceHistory.types';
6
6
  import { EnergyPrice } from '../site/EnergyPrice.types';
7
7
  import { EnergyPriceTempo } from '../site/EnergyPriceTempo.types';
8
- import { BuildingDataStatus, Profiles, SiteType } from '../site/enums.types';
8
+ import { BuildingDataStatus, Profiles, RetryHint, SiteType } from '../site/enums.types';
9
9
  import { OffPeakHour } from '../site/OffPeakHour.types';
10
10
  import { PeakHour } from '../site/PeakHour.types';
11
11
  import { RestOfTheYearTarifs } from '../site/RestOfTheYearTarifs.types';
@@ -38,6 +38,8 @@ export interface Site {
38
38
  startDate: Date | string;
39
39
  endDate: Date | string;
40
40
  automaticUpdateError: string | null;
41
+ automaticUpdateErrorHint?: RetryHint | null;
42
+ automaticUpdateRetryAt?: Date | string | null;
41
43
  scenario?: string;
42
44
  user: string;
43
45
  profile?: Profiles;
@@ -6,6 +6,7 @@ export declare class SiteTag {
6
6
  export declare class Rights {
7
7
  deleteSite: boolean;
8
8
  deleteSites: boolean;
9
+ viewLeads: boolean;
9
10
  }
10
11
  export declare class tokenData {
11
12
  resetPasswordToken: string;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './core/Site.types';
11
11
  export * from './core/User.type';
12
12
  export * from './core/Leads.type';
13
13
  export * from './core/StripeProduct.types';
14
+ export * from './core/MicroserviceError.types';
14
15
  export * from './scenario/BatteryParams.types';
15
16
  export * from './scenario/ConversionParams.types';
16
17
  export * from './scenario/DefaultPPATarif.types';
package/dist/index.js CHANGED
@@ -28,6 +28,7 @@ __exportStar(require("./core/Site.types"), exports);
28
28
  __exportStar(require("./core/User.type"), exports);
29
29
  __exportStar(require("./core/Leads.type"), exports);
30
30
  __exportStar(require("./core/StripeProduct.types"), exports);
31
+ __exportStar(require("./core/MicroserviceError.types"), exports);
31
32
  // Scenario exports
32
33
  __exportStar(require("./scenario/BatteryParams.types"), exports);
33
34
  __exportStar(require("./scenario/ConversionParams.types"), exports);
@@ -91,3 +91,8 @@ export declare enum BuildingDataStatus {
91
91
  NOT_COVERED = "NOT_COVERED",
92
92
  ERROR = "ERROR"
93
93
  }
94
+ export declare enum RetryHint {
95
+ RETRY_SHORT = "retry_short",
96
+ RETRY_LONG = "retry_long",
97
+ UNRECOVERABLE = "unrecoverable"
98
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BuildingDataStatus = exports.Reference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = exports.Profiles = exports.SiteType = exports.FileName_Extra = exports.FileType = void 0;
3
+ exports.RetryHint = exports.BuildingDataStatus = exports.Reference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = exports.Profiles = exports.SiteType = exports.FileName_Extra = exports.FileType = void 0;
4
4
  var FileType;
5
5
  (function (FileType) {
6
6
  FileType["DATA"] = "ConsoData.csv";
@@ -103,3 +103,9 @@ var BuildingDataStatus;
103
103
  BuildingDataStatus["NOT_COVERED"] = "NOT_COVERED";
104
104
  BuildingDataStatus["ERROR"] = "ERROR";
105
105
  })(BuildingDataStatus || (exports.BuildingDataStatus = BuildingDataStatus = {}));
106
+ var RetryHint;
107
+ (function (RetryHint) {
108
+ RetryHint["RETRY_SHORT"] = "retry_short";
109
+ RetryHint["RETRY_LONG"] = "retry_long";
110
+ RetryHint["UNRECOVERABLE"] = "unrecoverable";
111
+ })(RetryHint || (exports.RetryHint = RetryHint = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.69.0",
3
+ "version": "1.71.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",