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