@etainabl/nodejs-sdk 1.3.8 → 1.3.10
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 +17 -12
- package/dist/index.d.ts +17 -12
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -520,29 +520,34 @@ 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;
|
|
537
|
-
jobId?: string | null;
|
|
538
538
|
startTime?: Date;
|
|
539
539
|
endTime?: Date | null;
|
|
540
540
|
s3Key: string;
|
|
541
|
+
batchId: string;
|
|
542
|
+
textractJobId?: string;
|
|
543
|
+
textractJobStatus?: string;
|
|
544
|
+
status: 'pending' | 'uploading' | 'uploaded' | 'textracting' | 'textracted' | 'capturing' | 'captured' | 'failed';
|
|
541
545
|
metrics: {
|
|
542
546
|
startTime: Date;
|
|
543
|
-
endTime
|
|
547
|
+
endTime?: Date;
|
|
544
548
|
};
|
|
545
|
-
|
|
549
|
+
results?: any;
|
|
550
|
+
metadata?: InvoiceCaptureMetadata;
|
|
546
551
|
uploadFileName?: string | null;
|
|
547
552
|
companyId: string;
|
|
548
553
|
userSub: string;
|
|
@@ -853,4 +858,4 @@ declare namespace reporting {
|
|
|
853
858
|
export { reporting_getScheduledReportRunTimes as getScheduledReportRunTimes };
|
|
854
859
|
}
|
|
855
860
|
|
|
856
|
-
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,29 +520,34 @@ 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;
|
|
537
|
-
jobId?: string | null;
|
|
538
538
|
startTime?: Date;
|
|
539
539
|
endTime?: Date | null;
|
|
540
540
|
s3Key: string;
|
|
541
|
+
batchId: string;
|
|
542
|
+
textractJobId?: string;
|
|
543
|
+
textractJobStatus?: string;
|
|
544
|
+
status: 'pending' | 'uploading' | 'uploaded' | 'textracting' | 'textracted' | 'capturing' | 'captured' | 'failed';
|
|
541
545
|
metrics: {
|
|
542
546
|
startTime: Date;
|
|
543
|
-
endTime
|
|
547
|
+
endTime?: Date;
|
|
544
548
|
};
|
|
545
|
-
|
|
549
|
+
results?: any;
|
|
550
|
+
metadata?: InvoiceCaptureMetadata;
|
|
546
551
|
uploadFileName?: string | null;
|
|
547
552
|
companyId: string;
|
|
548
553
|
userSub: string;
|
|
@@ -853,4 +858,4 @@ declare namespace reporting {
|
|
|
853
858
|
export { reporting_getScheduledReportRunTimes as getScheduledReportRunTimes };
|
|
854
859
|
}
|
|
855
860
|
|
|
856
|
-
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 };
|