@etainabl/nodejs-sdk 1.2.28 → 1.2.30
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 +2 -1
- package/dist/cjs/api.d.ts.map +1 -0
- package/dist/cjs/consumption.d.ts +1 -0
- package/dist/cjs/consumption.d.ts.map +1 -0
- package/dist/cjs/db.d.ts +1 -0
- package/dist/cjs/db.d.ts.map +1 -0
- package/dist/cjs/etainabl.d.ts +1 -0
- package/dist/cjs/etainabl.d.ts.map +1 -0
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/logger.d.ts +1 -0
- package/dist/cjs/logger.d.ts.map +1 -0
- package/dist/cjs/monitoring.d.ts +1 -0
- package/dist/cjs/monitoring.d.ts.map +1 -0
- package/dist/cjs/reporting.d.ts +1 -0
- package/dist/cjs/reporting.d.ts.map +1 -0
- package/dist/cjs/slack.d.ts +1 -0
- package/dist/cjs/slack.d.ts.map +1 -0
- package/dist/cjs/types/index.d.ts +20 -0
- package/dist/cjs/types/index.d.ts.map +1 -0
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/units.d.ts +1 -0
- package/dist/cjs/units.d.ts.map +1 -0
- package/dist/mjs/api.d.ts +2 -1
- package/dist/mjs/api.d.ts.map +1 -0
- package/dist/mjs/consumption.d.ts +1 -0
- package/dist/mjs/consumption.d.ts.map +1 -0
- package/dist/mjs/db.d.ts +1 -0
- package/dist/mjs/db.d.ts.map +1 -0
- package/dist/mjs/etainabl.d.ts +1 -0
- package/dist/mjs/etainabl.d.ts.map +1 -0
- package/dist/mjs/index.d.ts +2 -1
- package/dist/mjs/index.d.ts.map +1 -0
- package/dist/mjs/logger.d.ts +1 -0
- package/dist/mjs/logger.d.ts.map +1 -0
- package/dist/mjs/monitoring.d.ts +1 -0
- package/dist/mjs/monitoring.d.ts.map +1 -0
- package/dist/mjs/reporting.d.ts +1 -0
- package/dist/mjs/reporting.d.ts.map +1 -0
- package/dist/mjs/slack.d.ts +1 -0
- package/dist/mjs/slack.d.ts.map +1 -0
- package/dist/mjs/types/index.d.ts +20 -0
- package/dist/mjs/types/index.d.ts.map +1 -0
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/units.d.ts +1 -0
- package/dist/mjs/units.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/index.ts +1 -1
- package/src/types/dataIngest.d.ts +1 -1
- package/src/types/index.ts +35 -0
- package/tsconfig.base.json +2 -7
- package/tsconfig.cjs.json +1 -0
- package/src/types/index.d.ts +0 -34
package/dist/cjs/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosInstance, CreateAxiosDefaults } from 'axios';
|
|
2
|
-
import type { Account, Asset, Company, Invoice, Log, Reading, Report } from './types/index.js';
|
|
2
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Report } from './types/index.js';
|
|
3
3
|
export interface ETNPagedResponse<T = any> {
|
|
4
4
|
data: T[];
|
|
5
5
|
total: number;
|
|
@@ -102,3 +102,4 @@ declare const _default: (auth: AuthOptions, instanceOptions?: CreateAxiosDefault
|
|
|
102
102
|
listDataIngest: (options?: AxiosRequestConfig<any>) => Promise<ETNPagedResponse<DataIngest>>;
|
|
103
103
|
};
|
|
104
104
|
export default _default;
|
|
105
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,mBAAmB,EAAiB,MAAM,OAAO,CAAC;AAKnG,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAY,MAAM,kBAAkB,CAAA;AAIhI,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG;IACvC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAwMD,UAAU,WAAW;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;+BAEqB,WAAW,oBAAmB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAvE,wBAkJE"}
|
|
@@ -12,3 +12,4 @@ export declare const calcMaxConsumptionValue: (data: ConsumptionData[]) => numbe
|
|
|
12
12
|
export declare const calcMaxDemand: (data: ConsumptionData[]) => number;
|
|
13
13
|
export declare const calcPeakLoad: (consumption: number, maxDemand: number, startDate: string | moment.Moment, endDate: string | moment.Moment) => number;
|
|
14
14
|
export {};
|
|
15
|
+
//# sourceMappingURL=consumption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumption.d.ts","sourceRoot":"","sources":["../../src/consumption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,UAAU,eAAe;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB;AAQD,eAAO,MAAM,mBAAmB,SAAU,eAAe,EAAE;;;;CAgBzD,CAAC;AAEH,eAAO,MAAM,uBAAuB,SAAU,eAAe,EAAE,WAAuE,CAAC;AAEvI,eAAO,MAAM,aAAa,SAAU,eAAe,EAAE,WAAsC,CAAC;AAE5F,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,aAAa,MAAM,GAAG,OAAO,MAAM,WAAW,MAAM,GAAG,OAAO,MAAM,WAItI,CAAC"}
|
package/dist/cjs/db.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,EAAE,EAAE,MAAM,SAAS,CAAC;AAO1C,iBAAe,iBAAiB,CAAC,YAAY,GAAE,MAAU,GAAG,OAAO,CAAC,EAAE,CAAC,CAyDtE;;;;AAED,wBAEE"}
|
package/dist/cjs/etainabl.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"etainabl.d.ts","sourceRoot":"","sources":["../../src/etainabl.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAA;CACd"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -6,6 +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 './types/index.
|
|
9
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from './types/index.js';
|
|
10
10
|
export { api, logger, consumption, monitoring, db, slack, units, reporting };
|
|
11
11
|
export type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier };
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEzH,OAAO,EACL,GAAG,EACH,MAAM,EACN,WAAW,EACX,UAAU,EACV,EAAE,EACF,KAAK,EACL,KAAK,EACL,SAAS,EACV,CAAA;AAED,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/cjs/logger.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;oCAEH,MAAM;AAAjC,wBAUG"}
|
package/dist/cjs/monitoring.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.d.ts","sourceRoot":"","sources":["../../src/monitoring.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,wBAWzB,CAAA"}
|
package/dist/cjs/reporting.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reporting.d.ts","sourceRoot":"","sources":["../../src/reporting.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AA2C5B,eAAO,MAAM,0BAA0B,aAAc,GAAG,+CAAmC,OAAO,MAAM,EAkCvG,CAAC"}
|
package/dist/cjs/slack.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../src/slack.ts"],"names":[],"mappings":";;;AAaA,wBAEC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Account } from './account.js';
|
|
2
|
+
import type { Asset } from './asset.js';
|
|
3
|
+
import type { Automation } from './automation.js';
|
|
4
|
+
import type { Company } from './company.js';
|
|
5
|
+
import type { CreateScraperRunParams, ScraperRun } from './scraperRun.js';
|
|
6
|
+
import type { DataIngest } from './dataIngest.js';
|
|
7
|
+
import type { Email } from './email.js';
|
|
8
|
+
import type { Invoice } from './invoice.js';
|
|
9
|
+
import type { Log } from './log.js';
|
|
10
|
+
import type { Reading } from './reading.js';
|
|
11
|
+
import type { Report } from './report.js';
|
|
12
|
+
import type { Supplier } from './supplier.js';
|
|
13
|
+
export type { Account, Asset, Automation, Company, CreateScraperRunParams, DataIngest, Email, Invoice, Log, Reading, Report, ScraperRun, Supplier };
|
|
14
|
+
export interface ETNPagedResponse<T = any> {
|
|
15
|
+
data: T[];
|
|
16
|
+
total: number;
|
|
17
|
+
limit: number;
|
|
18
|
+
skip: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC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ED,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,CAAC;AACzI,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACrL,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,CAAC;AAC1D,eAAO,MAAM,cAAc,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;CAUrD,CAAC;AA4BF,eAAO,MAAM,kBAAkB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAU1D,CAAC;AAGF,eAAO,MAAM,YAAY,UAAW,IAAI,EAAE,QAAQ,WAAW,gBAAgB,OAAO,GAAG,SAAS,iBAAiB,MAAM,GAAG,SAAS,KAAG,GAcrI,CAAC;AAgBF,eAAO,MAAM,uBAAuB,SAAU,MAAM,QAAQ,MAAM,kBAAiB,MAAM,GAAG,EAAE;;;CAgB7F,CAAC"}
|
package/dist/mjs/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosInstance, CreateAxiosDefaults } from 'axios';
|
|
2
|
-
import type { Account, Asset, Company, Invoice, Log, Reading, Report } from './types/index.js';
|
|
2
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Report } from './types/index.js';
|
|
3
3
|
export interface ETNPagedResponse<T = any> {
|
|
4
4
|
data: T[];
|
|
5
5
|
total: number;
|
|
@@ -102,3 +102,4 @@ declare const _default: (auth: AuthOptions, instanceOptions?: CreateAxiosDefault
|
|
|
102
102
|
listDataIngest: (options?: AxiosRequestConfig<any>) => Promise<ETNPagedResponse<DataIngest>>;
|
|
103
103
|
};
|
|
104
104
|
export default _default;
|
|
105
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,mBAAmB,EAAiB,MAAM,OAAO,CAAC;AAKnG,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAY,MAAM,kBAAkB,CAAA;AAIhI,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG;IACvC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAwMD,UAAU,WAAW;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;+BAEqB,WAAW,oBAAmB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAvE,wBAkJE"}
|
|
@@ -12,3 +12,4 @@ export declare const calcMaxConsumptionValue: (data: ConsumptionData[]) => numbe
|
|
|
12
12
|
export declare const calcMaxDemand: (data: ConsumptionData[]) => number;
|
|
13
13
|
export declare const calcPeakLoad: (consumption: number, maxDemand: number, startDate: string | moment.Moment, endDate: string | moment.Moment) => number;
|
|
14
14
|
export {};
|
|
15
|
+
//# sourceMappingURL=consumption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumption.d.ts","sourceRoot":"","sources":["../../src/consumption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,UAAU,eAAe;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB;AAQD,eAAO,MAAM,mBAAmB,SAAU,eAAe,EAAE;;;;CAgBzD,CAAC;AAEH,eAAO,MAAM,uBAAuB,SAAU,eAAe,EAAE,WAAuE,CAAC;AAEvI,eAAO,MAAM,aAAa,SAAU,eAAe,EAAE,WAAsC,CAAC;AAE5F,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,aAAa,MAAM,GAAG,OAAO,MAAM,WAAW,MAAM,GAAG,OAAO,MAAM,WAItI,CAAC"}
|
package/dist/mjs/db.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,EAAE,EAAE,MAAM,SAAS,CAAC;AAO1C,iBAAe,iBAAiB,CAAC,YAAY,GAAE,MAAU,GAAG,OAAO,CAAC,EAAE,CAAC,CAyDtE;;;;AAED,wBAEE"}
|
package/dist/mjs/etainabl.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"etainabl.d.ts","sourceRoot":"","sources":["../../src/etainabl.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAA;CACd"}
|
package/dist/mjs/index.d.ts
CHANGED
|
@@ -6,6 +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 './types/index.
|
|
9
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from './types/index.js';
|
|
10
10
|
export { api, logger, consumption, monitoring, db, slack, units, reporting };
|
|
11
11
|
export type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier };
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEzH,OAAO,EACL,GAAG,EACH,MAAM,EACN,WAAW,EACX,UAAU,EACV,EAAE,EACF,KAAK,EACL,KAAK,EACL,SAAS,EACV,CAAA;AAED,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/mjs/logger.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;oCAEH,MAAM;AAAjC,wBAUG"}
|
package/dist/mjs/monitoring.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.d.ts","sourceRoot":"","sources":["../../src/monitoring.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,wBAWzB,CAAA"}
|
package/dist/mjs/reporting.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reporting.d.ts","sourceRoot":"","sources":["../../src/reporting.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AA2C5B,eAAO,MAAM,0BAA0B,aAAc,GAAG,+CAAmC,OAAO,MAAM,EAkCvG,CAAC"}
|
package/dist/mjs/slack.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../src/slack.ts"],"names":[],"mappings":";;;AAaA,wBAEC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Account } from './account.js';
|
|
2
|
+
import type { Asset } from './asset.js';
|
|
3
|
+
import type { Automation } from './automation.js';
|
|
4
|
+
import type { Company } from './company.js';
|
|
5
|
+
import type { CreateScraperRunParams, ScraperRun } from './scraperRun.js';
|
|
6
|
+
import type { DataIngest } from './dataIngest.js';
|
|
7
|
+
import type { Email } from './email.js';
|
|
8
|
+
import type { Invoice } from './invoice.js';
|
|
9
|
+
import type { Log } from './log.js';
|
|
10
|
+
import type { Reading } from './reading.js';
|
|
11
|
+
import type { Report } from './report.js';
|
|
12
|
+
import type { Supplier } from './supplier.js';
|
|
13
|
+
export type { Account, Asset, Automation, Company, CreateScraperRunParams, DataIngest, Email, Invoice, Log, Reading, Report, ScraperRun, Supplier };
|
|
14
|
+
export interface ETNPagedResponse<T = any> {
|
|
15
|
+
data: T[];
|
|
16
|
+
total: number;
|
|
17
|
+
limit: number;
|
|
18
|
+
skip: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,YAAY,EACV,OAAO,EACP,KAAK,EACL,UAAU,EACV,OAAO,EACP,sBAAsB,EACtB,UAAU,EACV,KAAK,EACL,OAAO,EACP,GAAG,EACH,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,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kB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAU1D,CAAC;AAGF,eAAO,MAAM,YAAY,UAAW,IAAI,EAAE,QAAQ,WAAW,gBAAgB,OAAO,GAAG,SAAS,iBAAiB,MAAM,GAAG,SAAS,KAAG,GAcrI,CAAC;AAgBF,eAAO,MAAM,uBAAuB,SAAU,MAAM,QAAQ,MAAM,kBAAiB,MAAM,GAAG,EAAE;;;CAgB7F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etainabl/nodejs-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.30",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/mjs/index.js",
|
|
6
|
+
"types": "dist/mjs/index.d.ts",
|
|
6
7
|
"author": "Jonathan Lambert <jonathan@etainabl.com>",
|
|
7
8
|
"type": "module",
|
|
8
9
|
"dependencies": {
|
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 './types/index.
|
|
9
|
+
import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from './types/index.js';
|
|
10
10
|
|
|
11
11
|
export {
|
|
12
12
|
api,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Account } from './account.js'
|
|
2
|
+
import type { Asset } from './asset.js'
|
|
3
|
+
import type { Automation } from './automation.js'
|
|
4
|
+
import type { Company } from './company.js'
|
|
5
|
+
import type { CreateScraperRunParams, ScraperRun } from './scraperRun.js';
|
|
6
|
+
import type { DataIngest } from './dataIngest.js'
|
|
7
|
+
import type { Email } from './email.js';
|
|
8
|
+
import type { Invoice } from './invoice.js';
|
|
9
|
+
import type { Log } from './log.js';
|
|
10
|
+
import type { Reading } from './reading.js'
|
|
11
|
+
import type { Report } from './report.js'
|
|
12
|
+
import type { Supplier } from './supplier.js'
|
|
13
|
+
|
|
14
|
+
export type {
|
|
15
|
+
Account,
|
|
16
|
+
Asset,
|
|
17
|
+
Automation,
|
|
18
|
+
Company,
|
|
19
|
+
CreateScraperRunParams,
|
|
20
|
+
DataIngest,
|
|
21
|
+
Email,
|
|
22
|
+
Invoice,
|
|
23
|
+
Log,
|
|
24
|
+
Reading,
|
|
25
|
+
Report,
|
|
26
|
+
ScraperRun,
|
|
27
|
+
Supplier
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export interface ETNPagedResponse<T = any> {
|
|
31
|
+
data: T[];
|
|
32
|
+
total: number;
|
|
33
|
+
limit: number;
|
|
34
|
+
skip: number;
|
|
35
|
+
}
|
package/tsconfig.base.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"allowSyntheticDefaultImports": true,
|
|
5
5
|
"baseUrl": "src",
|
|
6
6
|
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
7
8
|
"esModuleInterop": true,
|
|
8
9
|
"inlineSourceMap": false,
|
|
9
10
|
"lib": ["esnext"],
|
|
@@ -20,18 +21,12 @@
|
|
|
20
21
|
"types": ["node", "vitest/globals"]
|
|
21
22
|
},
|
|
22
23
|
"watchOptions": {
|
|
23
|
-
// Use native file system events for files and directories
|
|
24
24
|
"watchFile": "useFsEvents",
|
|
25
25
|
"watchDirectory": "useFsEvents",
|
|
26
|
-
// Poll files for updates more frequently
|
|
27
|
-
// when they're updated a lot.
|
|
28
26
|
"fallbackPolling": "dynamicPriority",
|
|
29
|
-
// Don't coalesce watch notification
|
|
30
27
|
"synchronousWatchDirectory": true
|
|
31
|
-
// Finally, two additional settings for reducing the amount of possible
|
|
32
|
-
// files to track work from these directories
|
|
33
28
|
},
|
|
34
29
|
"exclude": ["node_modules", "dist"],
|
|
35
|
-
"include": ["src"],
|
|
30
|
+
"include": ["src/**/*"],
|
|
36
31
|
"compileOnSave": true
|
|
37
32
|
}
|
package/tsconfig.cjs.json
CHANGED
package/src/types/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Account } from './account.d.ts'
|
|
2
|
-
import type { Asset } from './asset.d.ts'
|
|
3
|
-
import type { Company } from './company.d.ts'
|
|
4
|
-
import type { CreateScraperRunParams, ScraperRun } from './scraperRun.d.ts';
|
|
5
|
-
import type { DataIngest } from './dataIngest.js'
|
|
6
|
-
import type { Email } from './email.d.ts';
|
|
7
|
-
import type { Invoice } from './invoice.d.ts';
|
|
8
|
-
import type { Log } from './log.d.ts';
|
|
9
|
-
import type { Reading } from './reading.d.ts'
|
|
10
|
-
import type { Report } from './report.d.ts'
|
|
11
|
-
import type { Supplier } from './supplier.d.ts'
|
|
12
|
-
|
|
13
|
-
export type {
|
|
14
|
-
Account,
|
|
15
|
-
Asset,
|
|
16
|
-
Automation,
|
|
17
|
-
Company,
|
|
18
|
-
CreateScraperRunParams,
|
|
19
|
-
DataIngest,
|
|
20
|
-
Email,
|
|
21
|
-
Invoice,
|
|
22
|
-
Log,
|
|
23
|
-
Reading,
|
|
24
|
-
Report,
|
|
25
|
-
ScraperRun,
|
|
26
|
-
Supplier
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export interface ETNPagedResponse<T = any> {
|
|
30
|
-
data: T[];
|
|
31
|
-
total: number;
|
|
32
|
-
limit: number;
|
|
33
|
-
skip: number;
|
|
34
|
-
}
|