@etainabl/nodejs-sdk 1.2.27 → 1.2.29
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/cjs/api.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/units.d.ts +3 -3
- package/dist/mjs/api.d.ts +1 -0
- package/dist/mjs/index.d.ts +1 -1
- package/dist/mjs/units.d.ts +3 -3
- package/package.json +1 -1
- package/src/api.ts +1 -1
- package/src/index.ts +1 -1
- /package/{types → src/types}/account.d.ts +0 -0
- /package/{types → src/types}/address.d.ts +0 -0
- /package/{types → src/types}/asset.d.ts +0 -0
- /package/{types → src/types}/automation.d.ts +0 -0
- /package/{types → src/types}/company.d.ts +0 -0
- /package/{types → src/types}/dataIngest.d.ts +0 -0
- /package/{types → src/types}/email.d.ts +0 -0
- /package/{types → src/types}/index.d.ts +0 -0
- /package/{types → src/types}/invoice.d.ts +0 -0
- /package/{types → src/types}/log.d.ts +0 -0
- /package/{types → src/types}/portal.d.ts +0 -0
- /package/{types → src/types}/reading.d.ts +0 -0
- /package/{types → src/types}/report.d.ts +0 -0
- /package/{types → src/types}/scraperRun.d.ts +0 -0
- /package/{types → src/types}/statusHistory.d.ts +0 -0
- /package/{types → src/types}/supplier.d.ts +0 -0
package/dist/cjs/api.d.ts
CHANGED
package/dist/cjs/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ import * as units from './units.js';
|
|
|
6
6
|
import * as consumption from './consumption.js';
|
|
7
7
|
import * as monitoring from './monitoring.js';
|
|
8
8
|
import * as reporting from './reporting.js';
|
|
9
|
-
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from '
|
|
9
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from './types/index.d.ts';
|
|
10
10
|
export { api, logger, consumption, monitoring, db, slack, units, reporting };
|
|
11
11
|
export type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier };
|
package/dist/cjs/units.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ interface Item {
|
|
|
5
5
|
value: number;
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
8
|
+
export type AccountType = 'electricity' | 'gas' | 'water' | 'waste' | 'solar' | 'heating' | 'flow' | 'cooling' | 'temperature' | 'other';
|
|
9
|
+
export type ETNUnit = 'kwh' | 'kg' | 'm3' | 'lbs' | 'tonnes' | 'wh' | 'mwh' | 'ft3' | 'hcf' | 'm3/h' | 'qty' | 'l' | 'C' | 'mcuf' | 'hcuf' | 'tcuf' | 'ocuf' | 'hm3' | 'tm3' | 'nm3';
|
|
10
|
+
export type BaseUnit = 'kwh' | 'm3' | 'C' | 'kg' | 'm3/h';
|
|
11
11
|
export declare const accountTypeMap: {
|
|
12
12
|
[key: string]: BaseUnit;
|
|
13
13
|
};
|
package/dist/mjs/api.d.ts
CHANGED
package/dist/mjs/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ import * as units from './units.js';
|
|
|
6
6
|
import * as consumption from './consumption.js';
|
|
7
7
|
import * as monitoring from './monitoring.js';
|
|
8
8
|
import * as reporting from './reporting.js';
|
|
9
|
-
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from '
|
|
9
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from './types/index.d.ts';
|
|
10
10
|
export { api, logger, consumption, monitoring, db, slack, units, reporting };
|
|
11
11
|
export type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier };
|
package/dist/mjs/units.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ interface Item {
|
|
|
5
5
|
value: number;
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
8
|
+
export type AccountType = 'electricity' | 'gas' | 'water' | 'waste' | 'solar' | 'heating' | 'flow' | 'cooling' | 'temperature' | 'other';
|
|
9
|
+
export type ETNUnit = 'kwh' | 'kg' | 'm3' | 'lbs' | 'tonnes' | 'wh' | 'mwh' | 'ft3' | 'hcf' | 'm3/h' | 'qty' | 'l' | 'C' | 'mcuf' | 'hcuf' | 'tcuf' | 'ocuf' | 'hm3' | 'tm3' | 'nm3';
|
|
10
|
+
export type BaseUnit = 'kwh' | 'm3' | 'C' | 'kg' | 'm3/h';
|
|
11
11
|
export declare const accountTypeMap: {
|
|
12
12
|
[key: string]: BaseUnit;
|
|
13
13
|
};
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -4,7 +4,7 @@ import https from 'https';
|
|
|
4
4
|
|
|
5
5
|
import logger from './logger.js';
|
|
6
6
|
|
|
7
|
-
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Report, Supplier } from '
|
|
7
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Report, Supplier } from './types/index.js'
|
|
8
8
|
|
|
9
9
|
const log = logger('etainablApi');
|
|
10
10
|
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as units from './units.js';
|
|
|
6
6
|
import * as consumption from './consumption.js';
|
|
7
7
|
import * as monitoring from './monitoring.js';
|
|
8
8
|
import * as reporting from './reporting.js';
|
|
9
|
-
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from '
|
|
9
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from './types/index.d.ts';
|
|
10
10
|
|
|
11
11
|
export {
|
|
12
12
|
api,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|