@etainabl/nodejs-sdk 1.3.8 → 1.3.9

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
@@ -534,15 +534,19 @@ interface InvoiceCaptureMetadata {
534
534
  }
535
535
  interface InvoiceCapture<IDType = ObjectId | string> {
536
536
  _id: IDType;
537
- jobId?: string | null;
538
537
  startTime?: Date;
539
538
  endTime?: Date | null;
540
539
  s3Key: string;
540
+ batchId: string;
541
+ textractJobId?: string;
542
+ textractJobStatus?: string;
543
+ status: 'pending' | 'uploading' | 'uploaded' | 'textracting' | 'textracted' | 'capturing' | 'captured' | 'failed';
541
544
  metrics: {
542
545
  startTime: Date;
543
- endTime: Date;
546
+ endTime?: Date;
544
547
  };
545
- metadata: InvoiceCaptureMetadata;
548
+ results?: any;
549
+ metadata?: InvoiceCaptureMetadata;
546
550
  uploadFileName?: string | null;
547
551
  companyId: string;
548
552
  userSub: string;
package/dist/index.d.ts CHANGED
@@ -534,15 +534,19 @@ interface InvoiceCaptureMetadata {
534
534
  }
535
535
  interface InvoiceCapture<IDType = ObjectId | string> {
536
536
  _id: IDType;
537
- jobId?: string | null;
538
537
  startTime?: Date;
539
538
  endTime?: Date | null;
540
539
  s3Key: string;
540
+ batchId: string;
541
+ textractJobId?: string;
542
+ textractJobStatus?: string;
543
+ status: 'pending' | 'uploading' | 'uploaded' | 'textracting' | 'textracted' | 'capturing' | 'captured' | 'failed';
541
544
  metrics: {
542
545
  startTime: Date;
543
- endTime: Date;
546
+ endTime?: Date;
544
547
  };
545
- metadata: InvoiceCaptureMetadata;
548
+ results?: any;
549
+ metadata?: InvoiceCaptureMetadata;
546
550
  uploadFileName?: string | null;
547
551
  companyId: string;
548
552
  userSub: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",