@etainabl/nodejs-sdk 1.3.39 → 1.3.41

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
@@ -349,6 +349,8 @@ interface InvoiceValidationRule<IDType = ObjectId | string> {
349
349
  key: string;
350
350
  name: string;
351
351
  description?: string;
352
+ priority: number;
353
+ granularity: 'document' | 'invoice' | 'meter';
352
354
  defaultEnabled: boolean;
353
355
  defaultThresholds: Record<string, any>;
354
356
  defaultStatus: 'pass' | 'warn' | 'fail';
@@ -359,6 +361,8 @@ interface InvoiceValidationResults<IDType = ObjectId | string> {
359
361
  invoiceValidationRuleId: IDType;
360
362
  comment: string;
361
363
  status: 'passed' | 'warning' | 'failed' | 'error';
364
+ invoiceIndex?: number;
365
+ meterIndex?: number;
362
366
  overrideStatus?: 'passed' | 'warning' | 'failed' | 'error';
363
367
  checkedAt: Date;
364
368
  }
@@ -367,7 +371,7 @@ interface InvoiceValidation<IDType = ObjectId | string> {
367
371
  status: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
368
372
  results: InvoiceValidationResults<IDType>[];
369
373
  invoiceCaptureId: IDType;
370
- invoiceId?: IDType;
374
+ invoiceIds?: IDType[];
371
375
  batchId?: string;
372
376
  accountIdMatches?: object;
373
377
  companyId: IDType;
@@ -548,10 +552,12 @@ interface InvoiceRate {
548
552
  endDate?: Date | null;
549
553
  endRead?: string | null;
550
554
  endReadType?: string | null;
555
+ endReadRegister?: string | null;
551
556
  rateName?: string | null;
552
557
  startDate?: Date | null;
553
558
  startRead?: string | null;
554
559
  startReadType?: string | null;
560
+ startReadRegister?: string | null;
555
561
  type: InvoiceRateType;
556
562
  unitRate?: string | null;
557
563
  }
package/dist/index.d.ts CHANGED
@@ -349,6 +349,8 @@ interface InvoiceValidationRule<IDType = ObjectId | string> {
349
349
  key: string;
350
350
  name: string;
351
351
  description?: string;
352
+ priority: number;
353
+ granularity: 'document' | 'invoice' | 'meter';
352
354
  defaultEnabled: boolean;
353
355
  defaultThresholds: Record<string, any>;
354
356
  defaultStatus: 'pass' | 'warn' | 'fail';
@@ -359,6 +361,8 @@ interface InvoiceValidationResults<IDType = ObjectId | string> {
359
361
  invoiceValidationRuleId: IDType;
360
362
  comment: string;
361
363
  status: 'passed' | 'warning' | 'failed' | 'error';
364
+ invoiceIndex?: number;
365
+ meterIndex?: number;
362
366
  overrideStatus?: 'passed' | 'warning' | 'failed' | 'error';
363
367
  checkedAt: Date;
364
368
  }
@@ -367,7 +371,7 @@ interface InvoiceValidation<IDType = ObjectId | string> {
367
371
  status: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
368
372
  results: InvoiceValidationResults<IDType>[];
369
373
  invoiceCaptureId: IDType;
370
- invoiceId?: IDType;
374
+ invoiceIds?: IDType[];
371
375
  batchId?: string;
372
376
  accountIdMatches?: object;
373
377
  companyId: IDType;
@@ -548,10 +552,12 @@ interface InvoiceRate {
548
552
  endDate?: Date | null;
549
553
  endRead?: string | null;
550
554
  endReadType?: string | null;
555
+ endReadRegister?: string | null;
551
556
  rateName?: string | null;
552
557
  startDate?: Date | null;
553
558
  startRead?: string | null;
554
559
  startReadType?: string | null;
560
+ startReadRegister?: string | null;
555
561
  type: InvoiceRateType;
556
562
  unitRate?: string | null;
557
563
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.3.39",
3
+ "version": "1.3.41",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",