@etainabl/nodejs-sdk 1.3.35 → 1.3.37

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
@@ -357,6 +357,7 @@ interface InvoiceValidationResults<IDType = ObjectId | string> {
357
357
  invoiceValidationRuleId: IDType;
358
358
  comment: string;
359
359
  status: 'passed' | 'warning' | 'failed' | 'error';
360
+ overrideStatus?: 'passed' | 'warning' | 'failed' | 'error';
360
361
  checkedAt: Date;
361
362
  }
362
363
  interface InvoiceValidation<IDType = ObjectId | string> {
@@ -366,6 +367,7 @@ interface InvoiceValidation<IDType = ObjectId | string> {
366
367
  invoiceCaptureId: IDType;
367
368
  invoiceId?: IDType;
368
369
  batchId?: string;
370
+ accountIdMatches?: object;
369
371
  companyId: IDType;
370
372
  userSub: string;
371
373
  }
@@ -385,13 +387,13 @@ interface DefaultSources {
385
387
  gas: 'invoice' | 'consumption' | 'reading';
386
388
  water: 'invoice' | 'consumption' | 'reading';
387
389
  }
388
- interface InvoiceValidationSettings<IDType = ObjectId | string> {
390
+ interface CompanyInvoiceValidationSettings<IDType = ObjectId | string> {
389
391
  enabled: boolean;
390
392
  invoiceValidationRuleId: IDType;
391
393
  thresholds: Record<string, any>;
392
394
  status: 'pass' | 'warn' | 'fail';
393
395
  }
394
- type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<InvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
396
+ type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<CompanyInvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
395
397
  interface CompanySettings<IDType = ObjectId | string> {
396
398
  showLogo?: boolean;
397
399
  invoiceCategories?: any[];
@@ -405,7 +407,7 @@ interface CompanySettings<IDType = ObjectId | string> {
405
407
  supplierPortals?: SupplierPortals[];
406
408
  defaultSources?: DefaultSources;
407
409
  scraperCounter?: number;
408
- invoiceValidationSettings?: InvoiceValidationSettings<IDType>;
410
+ invoiceValidationSettings?: CompanyInvoiceValidationSettings<IDType>;
409
411
  autoInvoiceValidation?: boolean;
410
412
  }
411
413
  interface Company<IDType = ObjectId | string> {
@@ -618,6 +620,7 @@ interface InvoiceCapture<IDType = ObjectId | string> {
618
620
  startTime?: Date;
619
621
  endTime?: Date | null;
620
622
  s3Key: string;
623
+ assignedUserId?: string;
621
624
  batchId: string;
622
625
  textractJobId?: string;
623
626
  textractJobStatus?: string;
@@ -927,4 +930,4 @@ declare namespace index {
927
930
  export { index_automationServices as automationServices, index_automationSources as automationSources };
928
931
  }
929
932
 
930
- export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, 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 InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, 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, index as utils };
933
+ export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, 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 InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, 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, index as utils };
package/dist/index.d.ts CHANGED
@@ -357,6 +357,7 @@ interface InvoiceValidationResults<IDType = ObjectId | string> {
357
357
  invoiceValidationRuleId: IDType;
358
358
  comment: string;
359
359
  status: 'passed' | 'warning' | 'failed' | 'error';
360
+ overrideStatus?: 'passed' | 'warning' | 'failed' | 'error';
360
361
  checkedAt: Date;
361
362
  }
362
363
  interface InvoiceValidation<IDType = ObjectId | string> {
@@ -366,6 +367,7 @@ interface InvoiceValidation<IDType = ObjectId | string> {
366
367
  invoiceCaptureId: IDType;
367
368
  invoiceId?: IDType;
368
369
  batchId?: string;
370
+ accountIdMatches?: object;
369
371
  companyId: IDType;
370
372
  userSub: string;
371
373
  }
@@ -385,13 +387,13 @@ interface DefaultSources {
385
387
  gas: 'invoice' | 'consumption' | 'reading';
386
388
  water: 'invoice' | 'consumption' | 'reading';
387
389
  }
388
- interface InvoiceValidationSettings<IDType = ObjectId | string> {
390
+ interface CompanyInvoiceValidationSettings<IDType = ObjectId | string> {
389
391
  enabled: boolean;
390
392
  invoiceValidationRuleId: IDType;
391
393
  thresholds: Record<string, any>;
392
394
  status: 'pass' | 'warn' | 'fail';
393
395
  }
394
- type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<InvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
396
+ type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<CompanyInvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
395
397
  interface CompanySettings<IDType = ObjectId | string> {
396
398
  showLogo?: boolean;
397
399
  invoiceCategories?: any[];
@@ -405,7 +407,7 @@ interface CompanySettings<IDType = ObjectId | string> {
405
407
  supplierPortals?: SupplierPortals[];
406
408
  defaultSources?: DefaultSources;
407
409
  scraperCounter?: number;
408
- invoiceValidationSettings?: InvoiceValidationSettings<IDType>;
410
+ invoiceValidationSettings?: CompanyInvoiceValidationSettings<IDType>;
409
411
  autoInvoiceValidation?: boolean;
410
412
  }
411
413
  interface Company<IDType = ObjectId | string> {
@@ -618,6 +620,7 @@ interface InvoiceCapture<IDType = ObjectId | string> {
618
620
  startTime?: Date;
619
621
  endTime?: Date | null;
620
622
  s3Key: string;
623
+ assignedUserId?: string;
621
624
  batchId: string;
622
625
  textractJobId?: string;
623
626
  textractJobStatus?: string;
@@ -927,4 +930,4 @@ declare namespace index {
927
930
  export { index_automationServices as automationServices, index_automationSources as automationSources };
928
931
  }
929
932
 
930
- export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, 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 InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, 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, index as utils };
933
+ export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, 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 InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, 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, index as utils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.3.35",
3
+ "version": "1.3.37",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",