@etainabl/nodejs-sdk 1.2.29 → 1.2.31

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 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;
@@ -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 './types/index.d.ts';
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 };
@@ -0,0 +1,19 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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;
@@ -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 './types/index.d.ts';
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 };
@@ -0,0 +1,19 @@
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
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
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.d.ts';
9
+ import type { Account, Asset, Automation, Company, DataIngest, Invoice, Log, Reading, Supplier } from './types/index.js';
10
10
 
11
11
  export {
12
12
  api,
@@ -1,4 +1,4 @@
1
- export interface DataImport {
1
+ export interface DataIngest {
2
2
  messageId: string;
3
3
  status: 'started' | 'processing' | 'importing' | 'completed' | 'failed' | 'dlq'
4
4
  context: string
@@ -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
+ }
@@ -20,16 +20,10 @@
20
20
  "types": ["node", "vitest/globals"]
21
21
  },
22
22
  "watchOptions": {
23
- // Use native file system events for files and directories
24
23
  "watchFile": "useFsEvents",
25
24
  "watchDirectory": "useFsEvents",
26
- // Poll files for updates more frequently
27
- // when they're updated a lot.
28
25
  "fallbackPolling": "dynamicPriority",
29
- // Don't coalesce watch notification
30
26
  "synchronousWatchDirectory": true
31
- // Finally, two additional settings for reducing the amount of possible
32
- // files to track work from these directories
33
27
  },
34
28
  "exclude": ["node_modules", "dist"],
35
29
  "include": ["src"],
package/tsconfig.cjs.json CHANGED
@@ -3,6 +3,6 @@
3
3
  "compilerOptions": {
4
4
  "module": "CommonJS",
5
5
  "outDir": "./dist/cjs",
6
- "target": "es2015",
6
+ "target": "es2015"
7
7
  }
8
8
  }
@@ -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
- }