@etainabl/nodejs-sdk 1.3.9 → 1.3.11

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
@@ -520,17 +520,18 @@ interface Invoice<IDType = ObjectId | string> {
520
520
  validation?: any[];
521
521
  }
522
522
 
523
+ interface InvoiceCaptureMetadataResult {
524
+ key: string;
525
+ params: any;
526
+ modelResponse: any;
527
+ dmg: number;
528
+ promptedAt: Date;
529
+ duration: number;
530
+ }
523
531
  interface InvoiceCaptureMetadata {
524
532
  totalDmg: Number;
525
533
  totalDuration: Number;
526
- results: {
527
- key: string;
528
- params: any;
529
- modelResponse: any;
530
- dmg: number;
531
- promptedAt: Date;
532
- duration: number;
533
- };
534
+ results: InvoiceCaptureMetadataResult[];
534
535
  }
535
536
  interface InvoiceCapture<IDType = ObjectId | string> {
536
537
  _id: IDType;
@@ -540,7 +541,7 @@ interface InvoiceCapture<IDType = ObjectId | string> {
540
541
  batchId: string;
541
542
  textractJobId?: string;
542
543
  textractJobStatus?: string;
543
- status: 'pending' | 'uploading' | 'uploaded' | 'textracting' | 'textracted' | 'capturing' | 'captured' | 'failed';
544
+ status: 'pending' | 'uploading' | 'uploaded' | 'extracting' | 'extracted' | 'capturing' | 'captured' | 'failed';
544
545
  metrics: {
545
546
  startTime: Date;
546
547
  endTime?: Date;
@@ -857,4 +858,4 @@ declare namespace reporting {
857
858
  export { reporting_getScheduledReportRunTimes as getScheduledReportRunTimes };
858
859
  }
859
860
 
860
- 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 InvoiceCapture, type InvoiceRate, type InvoiceRateType, type InvoiceValues, 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 };
861
+ 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 InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValues, 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
@@ -520,17 +520,18 @@ interface Invoice<IDType = ObjectId | string> {
520
520
  validation?: any[];
521
521
  }
522
522
 
523
+ interface InvoiceCaptureMetadataResult {
524
+ key: string;
525
+ params: any;
526
+ modelResponse: any;
527
+ dmg: number;
528
+ promptedAt: Date;
529
+ duration: number;
530
+ }
523
531
  interface InvoiceCaptureMetadata {
524
532
  totalDmg: Number;
525
533
  totalDuration: Number;
526
- results: {
527
- key: string;
528
- params: any;
529
- modelResponse: any;
530
- dmg: number;
531
- promptedAt: Date;
532
- duration: number;
533
- };
534
+ results: InvoiceCaptureMetadataResult[];
534
535
  }
535
536
  interface InvoiceCapture<IDType = ObjectId | string> {
536
537
  _id: IDType;
@@ -540,7 +541,7 @@ interface InvoiceCapture<IDType = ObjectId | string> {
540
541
  batchId: string;
541
542
  textractJobId?: string;
542
543
  textractJobStatus?: string;
543
- status: 'pending' | 'uploading' | 'uploaded' | 'textracting' | 'textracted' | 'capturing' | 'captured' | 'failed';
544
+ status: 'pending' | 'uploading' | 'uploaded' | 'extracting' | 'extracted' | 'capturing' | 'captured' | 'failed';
544
545
  metrics: {
545
546
  startTime: Date;
546
547
  endTime?: Date;
@@ -857,4 +858,4 @@ declare namespace reporting {
857
858
  export { reporting_getScheduledReportRunTimes as getScheduledReportRunTimes };
858
859
  }
859
860
 
860
- 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 InvoiceCapture, type InvoiceRate, type InvoiceRateType, type InvoiceValues, 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 };
861
+ 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 InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValues, 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.3.9",
3
+ "version": "1.3.11",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",