@etainabl/nodejs-sdk 1.3.35 → 1.3.36

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
@@ -385,13 +385,13 @@ interface DefaultSources {
385
385
  gas: 'invoice' | 'consumption' | 'reading';
386
386
  water: 'invoice' | 'consumption' | 'reading';
387
387
  }
388
- interface InvoiceValidationSettings<IDType = ObjectId | string> {
388
+ interface CompanyInvoiceValidationSettings<IDType = ObjectId | string> {
389
389
  enabled: boolean;
390
390
  invoiceValidationRuleId: IDType;
391
391
  thresholds: Record<string, any>;
392
392
  status: 'pass' | 'warn' | 'fail';
393
393
  }
394
- type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<InvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
394
+ type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<CompanyInvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
395
395
  interface CompanySettings<IDType = ObjectId | string> {
396
396
  showLogo?: boolean;
397
397
  invoiceCategories?: any[];
@@ -405,7 +405,7 @@ interface CompanySettings<IDType = ObjectId | string> {
405
405
  supplierPortals?: SupplierPortals[];
406
406
  defaultSources?: DefaultSources;
407
407
  scraperCounter?: number;
408
- invoiceValidationSettings?: InvoiceValidationSettings<IDType>;
408
+ invoiceValidationSettings?: CompanyInvoiceValidationSettings<IDType>;
409
409
  autoInvoiceValidation?: boolean;
410
410
  }
411
411
  interface Company<IDType = ObjectId | string> {
@@ -927,4 +927,4 @@ declare namespace index {
927
927
  export { index_automationServices as automationServices, index_automationSources as automationSources };
928
928
  }
929
929
 
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 };
930
+ 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
@@ -385,13 +385,13 @@ interface DefaultSources {
385
385
  gas: 'invoice' | 'consumption' | 'reading';
386
386
  water: 'invoice' | 'consumption' | 'reading';
387
387
  }
388
- interface InvoiceValidationSettings<IDType = ObjectId | string> {
388
+ interface CompanyInvoiceValidationSettings<IDType = ObjectId | string> {
389
389
  enabled: boolean;
390
390
  invoiceValidationRuleId: IDType;
391
391
  thresholds: Record<string, any>;
392
392
  status: 'pass' | 'warn' | 'fail';
393
393
  }
394
- type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<InvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
394
+ type CompanyInvoiceValidationRule<IDType = ObjectId | string> = InvoiceValidationRule<IDType> & Pick<CompanyInvoiceValidationSettings<IDType>, 'enabled' | 'thresholds' | 'status'>;
395
395
  interface CompanySettings<IDType = ObjectId | string> {
396
396
  showLogo?: boolean;
397
397
  invoiceCategories?: any[];
@@ -405,7 +405,7 @@ interface CompanySettings<IDType = ObjectId | string> {
405
405
  supplierPortals?: SupplierPortals[];
406
406
  defaultSources?: DefaultSources;
407
407
  scraperCounter?: number;
408
- invoiceValidationSettings?: InvoiceValidationSettings<IDType>;
408
+ invoiceValidationSettings?: CompanyInvoiceValidationSettings<IDType>;
409
409
  autoInvoiceValidation?: boolean;
410
410
  }
411
411
  interface Company<IDType = ObjectId | string> {
@@ -927,4 +927,4 @@ declare namespace index {
927
927
  export { index_automationServices as automationServices, index_automationSources as automationSources };
928
928
  }
929
929
 
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 };
930
+ 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.36",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",