@etainabl/nodejs-sdk 1.3.127 → 1.3.129
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 +29 -3
- package/dist/index.d.ts +29 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -795,8 +795,8 @@ interface InvoiceValidationInvoice {
|
|
|
795
795
|
supplyAddress: string;
|
|
796
796
|
utilityType: string;
|
|
797
797
|
meterId: string;
|
|
798
|
-
accountId?: string;
|
|
799
|
-
supplierId?: string;
|
|
798
|
+
accountId?: string | null;
|
|
799
|
+
supplierId?: string | null;
|
|
800
800
|
}
|
|
801
801
|
interface InvoiceValidationRule<IDType = ObjectId | string> {
|
|
802
802
|
_id: IDType;
|
|
@@ -1090,6 +1090,21 @@ interface Invoice<IDType = ObjectId | string, DateType = Date> {
|
|
|
1090
1090
|
assignedTo?: string;
|
|
1091
1091
|
noScrape?: boolean;
|
|
1092
1092
|
scraperInvoiceId?: string;
|
|
1093
|
+
captureComments: {
|
|
1094
|
+
recipient: string;
|
|
1095
|
+
supplier: string;
|
|
1096
|
+
invoiceCosts: string;
|
|
1097
|
+
utilityTypes: string;
|
|
1098
|
+
invoiceDueDate: string;
|
|
1099
|
+
meter: string;
|
|
1100
|
+
meterPointNumber: string;
|
|
1101
|
+
utilityType: string;
|
|
1102
|
+
costs: string;
|
|
1103
|
+
consumption: string;
|
|
1104
|
+
rates: string;
|
|
1105
|
+
readings: string;
|
|
1106
|
+
contractDates: string;
|
|
1107
|
+
};
|
|
1093
1108
|
confirmedAt?: DateType | null;
|
|
1094
1109
|
confirmedBy?: string | null;
|
|
1095
1110
|
supplierId: IDType;
|
|
@@ -1121,9 +1136,19 @@ interface InvoiceCaptureMetadataResult {
|
|
|
1121
1136
|
}
|
|
1122
1137
|
interface InvoiceCaptureMetadata {
|
|
1123
1138
|
totalDmg: Number;
|
|
1124
|
-
totalDuration: Number;
|
|
1125
1139
|
pdfPageCount: number;
|
|
1126
1140
|
extractPageCount: number;
|
|
1141
|
+
extracted: boolean;
|
|
1142
|
+
split: boolean;
|
|
1143
|
+
splitQuantity: number;
|
|
1144
|
+
invoices: {
|
|
1145
|
+
uuid: string;
|
|
1146
|
+
startPage: number;
|
|
1147
|
+
endPage: number;
|
|
1148
|
+
index: number;
|
|
1149
|
+
invoiceNumber: string;
|
|
1150
|
+
type: string;
|
|
1151
|
+
}[];
|
|
1127
1152
|
results: InvoiceCaptureMetadataResult[];
|
|
1128
1153
|
}
|
|
1129
1154
|
interface InvoiceCapture<IDType = ObjectId | string> {
|
|
@@ -1309,6 +1334,7 @@ interface InvoiceOptionsSchema {
|
|
|
1309
1334
|
interface Supplier<IDType = ObjectId | string> {
|
|
1310
1335
|
_id: IDType;
|
|
1311
1336
|
name: string;
|
|
1337
|
+
aliases?: string[];
|
|
1312
1338
|
logoUrl?: string;
|
|
1313
1339
|
websiteUrl?: string;
|
|
1314
1340
|
portalUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -795,8 +795,8 @@ interface InvoiceValidationInvoice {
|
|
|
795
795
|
supplyAddress: string;
|
|
796
796
|
utilityType: string;
|
|
797
797
|
meterId: string;
|
|
798
|
-
accountId?: string;
|
|
799
|
-
supplierId?: string;
|
|
798
|
+
accountId?: string | null;
|
|
799
|
+
supplierId?: string | null;
|
|
800
800
|
}
|
|
801
801
|
interface InvoiceValidationRule<IDType = ObjectId | string> {
|
|
802
802
|
_id: IDType;
|
|
@@ -1090,6 +1090,21 @@ interface Invoice<IDType = ObjectId | string, DateType = Date> {
|
|
|
1090
1090
|
assignedTo?: string;
|
|
1091
1091
|
noScrape?: boolean;
|
|
1092
1092
|
scraperInvoiceId?: string;
|
|
1093
|
+
captureComments: {
|
|
1094
|
+
recipient: string;
|
|
1095
|
+
supplier: string;
|
|
1096
|
+
invoiceCosts: string;
|
|
1097
|
+
utilityTypes: string;
|
|
1098
|
+
invoiceDueDate: string;
|
|
1099
|
+
meter: string;
|
|
1100
|
+
meterPointNumber: string;
|
|
1101
|
+
utilityType: string;
|
|
1102
|
+
costs: string;
|
|
1103
|
+
consumption: string;
|
|
1104
|
+
rates: string;
|
|
1105
|
+
readings: string;
|
|
1106
|
+
contractDates: string;
|
|
1107
|
+
};
|
|
1093
1108
|
confirmedAt?: DateType | null;
|
|
1094
1109
|
confirmedBy?: string | null;
|
|
1095
1110
|
supplierId: IDType;
|
|
@@ -1121,9 +1136,19 @@ interface InvoiceCaptureMetadataResult {
|
|
|
1121
1136
|
}
|
|
1122
1137
|
interface InvoiceCaptureMetadata {
|
|
1123
1138
|
totalDmg: Number;
|
|
1124
|
-
totalDuration: Number;
|
|
1125
1139
|
pdfPageCount: number;
|
|
1126
1140
|
extractPageCount: number;
|
|
1141
|
+
extracted: boolean;
|
|
1142
|
+
split: boolean;
|
|
1143
|
+
splitQuantity: number;
|
|
1144
|
+
invoices: {
|
|
1145
|
+
uuid: string;
|
|
1146
|
+
startPage: number;
|
|
1147
|
+
endPage: number;
|
|
1148
|
+
index: number;
|
|
1149
|
+
invoiceNumber: string;
|
|
1150
|
+
type: string;
|
|
1151
|
+
}[];
|
|
1127
1152
|
results: InvoiceCaptureMetadataResult[];
|
|
1128
1153
|
}
|
|
1129
1154
|
interface InvoiceCapture<IDType = ObjectId | string> {
|
|
@@ -1309,6 +1334,7 @@ interface InvoiceOptionsSchema {
|
|
|
1309
1334
|
interface Supplier<IDType = ObjectId | string> {
|
|
1310
1335
|
_id: IDType;
|
|
1311
1336
|
name: string;
|
|
1337
|
+
aliases?: string[];
|
|
1312
1338
|
logoUrl?: string;
|
|
1313
1339
|
websiteUrl?: string;
|
|
1314
1340
|
portalUrl?: string;
|