@etainabl/nodejs-sdk 1.2.52 → 1.2.54

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
@@ -546,8 +546,8 @@ interface Reading {
546
546
  }
547
547
 
548
548
  type ReportSource = 'assetGroup' | 'asset' | 'account' | 'accountsByRegister';
549
- interface ReportSourceIdItem {
550
- _id: ObjectId | string;
549
+ interface ReportSourceIdItem<T> {
550
+ _id: T;
551
551
  type: ReportSource;
552
552
  }
553
553
  interface ReportMetadata {
@@ -558,7 +558,7 @@ interface ReportMetadata {
558
558
  endDate?: string;
559
559
  subType: string;
560
560
  granularity?: string;
561
- sourceIds?: ReportSourceIdItem[];
561
+ sourceIds?: ReportSourceIdItem<string>[] | ReportSourceIdItem<ObjectId>[];
562
562
  schema?: [string];
563
563
  rawUnits?: boolean;
564
564
  dayNightSplit: boolean;
package/dist/index.d.ts CHANGED
@@ -546,8 +546,8 @@ interface Reading {
546
546
  }
547
547
 
548
548
  type ReportSource = 'assetGroup' | 'asset' | 'account' | 'accountsByRegister';
549
- interface ReportSourceIdItem {
550
- _id: ObjectId | string;
549
+ interface ReportSourceIdItem<T> {
550
+ _id: T;
551
551
  type: ReportSource;
552
552
  }
553
553
  interface ReportMetadata {
@@ -558,7 +558,7 @@ interface ReportMetadata {
558
558
  endDate?: string;
559
559
  subType: string;
560
560
  granularity?: string;
561
- sourceIds?: ReportSourceIdItem[];
561
+ sourceIds?: ReportSourceIdItem<string>[] | ReportSourceIdItem<ObjectId>[];
562
562
  schema?: [string];
563
563
  rawUnits?: boolean;
564
564
  dayNightSplit: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.2.52",
3
+ "version": "1.2.54",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",