@etainabl/nodejs-sdk 1.3.58 → 1.3.60
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 +16 -1
- package/dist/index.d.ts +16 -1
- package/package.json +1 -1
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,8 @@ 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[];
|
|
427
|
+
summary?: string;
|
|
413
428
|
invoiceIds?: IDType[];
|
|
414
429
|
batchId?: string;
|
|
415
430
|
accountIdMatches?: object;
|
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,8 @@ 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[];
|
|
427
|
+
summary?: string;
|
|
413
428
|
invoiceIds?: IDType[];
|
|
414
429
|
batchId?: string;
|
|
415
430
|
accountIdMatches?: object;
|