@etainabl/nodejs-sdk 1.2.50 → 1.2.51

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.
package/dist/index.d.cts CHANGED
@@ -19,6 +19,8 @@ interface StatusHistory {
19
19
  notes?: string;
20
20
  }
21
21
 
22
+ type UtilityType = 'electricity' | 'gas' | 'water' | 'waste' | 'solar' | 'heating' | 'flow' | 'cooling' | 'temperature' | 'oil' | 'other';
23
+
22
24
  interface PortalAccountSchema extends Portal {
23
25
  invoiceFilenames: any[];
24
26
  }
@@ -78,7 +80,7 @@ interface Account {
78
80
  name: string;
79
81
  modifiedBy?: string;
80
82
  siteCode?: string;
81
- type: 'gas' | 'electricity' | 'water' | 'waste' | 'solar';
83
+ type: UtilityType;
82
84
  supplierRef?: string;
83
85
  financialCode?: string;
84
86
  propertyCode?: string;
@@ -559,6 +561,13 @@ interface ReportMetadata {
559
561
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
560
562
  showSimulated?: boolean;
561
563
  chartOptions?: any;
564
+ filters: Record<string, any>;
565
+ readingSource: Reading['source'];
566
+ dateField: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
567
+ includeSubMeters: boolean;
568
+ utilityType: UtilityType;
569
+ accountTag: string;
570
+ activityType: string;
562
571
  }
563
572
  interface Report {
564
573
  _id: string;
@@ -800,4 +809,4 @@ declare namespace reporting {
800
809
  export { reporting_getScheduledReportRunTimes as getScheduledReportRunTimes };
801
810
  }
802
811
 
803
- export { type Account, type Asset, type Automation, type Company, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type Invoice, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, reporting, _default as slack, units };
812
+ export { type Account, type Asset, type Automation, type Company, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type Invoice, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type UtilityType, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, reporting, _default as slack, units };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,8 @@ interface StatusHistory {
19
19
  notes?: string;
20
20
  }
21
21
 
22
+ type UtilityType = 'electricity' | 'gas' | 'water' | 'waste' | 'solar' | 'heating' | 'flow' | 'cooling' | 'temperature' | 'oil' | 'other';
23
+
22
24
  interface PortalAccountSchema extends Portal {
23
25
  invoiceFilenames: any[];
24
26
  }
@@ -78,7 +80,7 @@ interface Account {
78
80
  name: string;
79
81
  modifiedBy?: string;
80
82
  siteCode?: string;
81
- type: 'gas' | 'electricity' | 'water' | 'waste' | 'solar';
83
+ type: UtilityType;
82
84
  supplierRef?: string;
83
85
  financialCode?: string;
84
86
  propertyCode?: string;
@@ -559,6 +561,13 @@ interface ReportMetadata {
559
561
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
560
562
  showSimulated?: boolean;
561
563
  chartOptions?: any;
564
+ filters: Record<string, any>;
565
+ readingSource: Reading['source'];
566
+ dateField: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
567
+ includeSubMeters: boolean;
568
+ utilityType: UtilityType;
569
+ accountTag: string;
570
+ activityType: string;
562
571
  }
563
572
  interface Report {
564
573
  _id: string;
@@ -800,4 +809,4 @@ declare namespace reporting {
800
809
  export { reporting_getScheduledReportRunTimes as getScheduledReportRunTimes };
801
810
  }
802
811
 
803
- export { type Account, type Asset, type Automation, type Company, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type Invoice, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, reporting, _default as slack, units };
812
+ export { type Account, type Asset, type Automation, type Company, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type Invoice, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type UtilityType, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, reporting, _default as slack, units };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.2.50",
3
+ "version": "1.2.51",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",