@etainabl/nodejs-sdk 1.3.59 → 1.3.61

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
@@ -383,6 +383,19 @@ interface Consumption<IDType = ObjectId | string> {
383
383
  batchCorrectionId?: string;
384
384
  }
385
385
 
386
+ interface InvoiceValidationInvoice {
387
+ valid: boolean;
388
+ meterPointNumber: string;
389
+ meterSerialNumber: string;
390
+ startPage: number;
391
+ endPage: number;
392
+ supplyAddress: string;
393
+ utilityType: string;
394
+ meterIndex: number;
395
+ invoiceIndex: number;
396
+ accountId?: string;
397
+ supplierId?: string;
398
+ }
386
399
  interface InvoiceValidationRule<IDType = ObjectId | string> {
387
400
  _id: IDType;
388
401
  key: string;
@@ -400,9 +413,9 @@ interface InvoiceValidationResults<IDType = ObjectId | string> {
400
413
  invoiceValidationRuleId: IDType;
401
414
  comment: string;
402
415
  status: 'passed' | 'warning' | 'failed' | 'error';
416
+ originalStatus: 'passed' | 'warning' | 'failed' | 'error';
403
417
  invoiceIndex?: number;
404
418
  meterIndex?: number;
405
- overrideStatus?: 'passed' | 'warning' | 'failed' | 'error';
406
419
  checkedAt: Date;
407
420
  }
408
421
  interface InvoiceValidation<IDType = ObjectId | string> {
@@ -410,6 +423,7 @@ interface InvoiceValidation<IDType = ObjectId | string> {
410
423
  status: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
411
424
  results: InvoiceValidationResults<IDType>[];
412
425
  invoiceCaptureId: IDType;
426
+ invoiceResults: InvoiceValidationInvoice[];
413
427
  summary?: string;
414
428
  invoiceIds?: IDType[];
415
429
  batchId?: string;
@@ -1128,4 +1142,4 @@ declare namespace index {
1128
1142
  export { index_Prompt as Prompt, type index_PromptInput as PromptInput, type index_PromptOptions as PromptOptions, type index_PromptResponse as PromptResponse };
1129
1143
  }
1130
1144
 
1131
- export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type Consumption, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type ImportTemplate, type Invoice, type InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, type InvoiceValues, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type User, type UtilityType, type WasteCategories, type WasteTypes, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, index as openai, reporting, _default as slack, units, index$1 as utils };
1145
+ export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type Consumption, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type ImportTemplate, type Invoice, type InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValidation, type InvoiceValidationInvoice, type InvoiceValidationResults, type InvoiceValidationRule, type InvoiceValues, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type User, type UtilityType, type WasteCategories, type WasteTypes, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, index as openai, reporting, _default as slack, units, index$1 as utils };
package/dist/index.d.ts CHANGED
@@ -383,6 +383,19 @@ interface Consumption<IDType = ObjectId | string> {
383
383
  batchCorrectionId?: string;
384
384
  }
385
385
 
386
+ interface InvoiceValidationInvoice {
387
+ valid: boolean;
388
+ meterPointNumber: string;
389
+ meterSerialNumber: string;
390
+ startPage: number;
391
+ endPage: number;
392
+ supplyAddress: string;
393
+ utilityType: string;
394
+ meterIndex: number;
395
+ invoiceIndex: number;
396
+ accountId?: string;
397
+ supplierId?: string;
398
+ }
386
399
  interface InvoiceValidationRule<IDType = ObjectId | string> {
387
400
  _id: IDType;
388
401
  key: string;
@@ -400,9 +413,9 @@ interface InvoiceValidationResults<IDType = ObjectId | string> {
400
413
  invoiceValidationRuleId: IDType;
401
414
  comment: string;
402
415
  status: 'passed' | 'warning' | 'failed' | 'error';
416
+ originalStatus: 'passed' | 'warning' | 'failed' | 'error';
403
417
  invoiceIndex?: number;
404
418
  meterIndex?: number;
405
- overrideStatus?: 'passed' | 'warning' | 'failed' | 'error';
406
419
  checkedAt: Date;
407
420
  }
408
421
  interface InvoiceValidation<IDType = ObjectId | string> {
@@ -410,6 +423,7 @@ interface InvoiceValidation<IDType = ObjectId | string> {
410
423
  status: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
411
424
  results: InvoiceValidationResults<IDType>[];
412
425
  invoiceCaptureId: IDType;
426
+ invoiceResults: InvoiceValidationInvoice[];
413
427
  summary?: string;
414
428
  invoiceIds?: IDType[];
415
429
  batchId?: string;
@@ -1128,4 +1142,4 @@ declare namespace index {
1128
1142
  export { index_Prompt as Prompt, type index_PromptInput as PromptInput, type index_PromptOptions as PromptOptions, type index_PromptResponse as PromptResponse };
1129
1143
  }
1130
1144
 
1131
- export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type Consumption, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type ImportTemplate, type Invoice, type InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, type InvoiceValues, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type User, type UtilityType, type WasteCategories, type WasteTypes, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, index as openai, reporting, _default as slack, units, index$1 as utils };
1145
+ export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type Consumption, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type ImportTemplate, type Invoice, type InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValidation, type InvoiceValidationInvoice, type InvoiceValidationResults, type InvoiceValidationRule, type InvoiceValues, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type User, type UtilityType, type WasteCategories, type WasteTypes, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, index as openai, reporting, _default as slack, units, index$1 as utils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.3.59",
3
+ "version": "1.3.61",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",