@etainabl/nodejs-sdk 1.3.131 → 1.3.133
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 +35 -13
- package/dist/index.d.ts +35 -13
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1025,21 +1025,42 @@ interface InvoiceValues<DateType = Date | string> {
|
|
|
1025
1025
|
totalWasteCost?: number;
|
|
1026
1026
|
totalDaily?: number;
|
|
1027
1027
|
totalLevy?: number;
|
|
1028
|
+
totalCCL?: number;
|
|
1029
|
+
totalMisc?: number;
|
|
1030
|
+
totalFeedInTariff?: number;
|
|
1031
|
+
totalLatePayment?: number;
|
|
1028
1032
|
totalKva?: number;
|
|
1029
1033
|
totalUnits?: number;
|
|
1030
1034
|
totalWaterVolume?: number;
|
|
1031
1035
|
totalWasteVolume?: number;
|
|
1036
|
+
capacity?: number;
|
|
1032
1037
|
netTotalCost?: number;
|
|
1033
1038
|
totalTax?: number;
|
|
1034
1039
|
totalCost?: number;
|
|
1035
|
-
meteredConsumption?:
|
|
1036
|
-
correctedConsumption?:
|
|
1037
|
-
correctionFactor?:
|
|
1038
|
-
calorificValue?:
|
|
1039
|
-
readFactor?:
|
|
1040
|
+
meteredConsumption?: number;
|
|
1041
|
+
correctedConsumption?: number;
|
|
1042
|
+
correctionFactor?: number;
|
|
1043
|
+
calorificValue?: number;
|
|
1044
|
+
readFactor?: number;
|
|
1045
|
+
sewerageReturnPercentage?: number;
|
|
1040
1046
|
type?: string;
|
|
1041
1047
|
startRead?: string;
|
|
1042
1048
|
endRead?: string;
|
|
1049
|
+
supplierName?: string;
|
|
1050
|
+
supplierVatNumber?: string;
|
|
1051
|
+
recipient?: string;
|
|
1052
|
+
invoiceDueDate?: Date;
|
|
1053
|
+
invoiceStartDate?: Date;
|
|
1054
|
+
invoiceEndDate?: Date;
|
|
1055
|
+
startReadType?: string;
|
|
1056
|
+
endReadType?: string;
|
|
1057
|
+
isFinal?: boolean;
|
|
1058
|
+
units?: string;
|
|
1059
|
+
supplyAddress?: string;
|
|
1060
|
+
contractEndDate?: Date;
|
|
1061
|
+
contractNoticeDate?: Date;
|
|
1062
|
+
invoiceValuesComment?: string;
|
|
1063
|
+
meterValuesComment?: string;
|
|
1043
1064
|
}
|
|
1044
1065
|
interface InvoiceRate {
|
|
1045
1066
|
id: string;
|
|
@@ -1061,7 +1082,7 @@ interface InvoiceRate {
|
|
|
1061
1082
|
}
|
|
1062
1083
|
type InvoiceStatus = 'processing' | 'pending' | 'uploading' | 'queued' | 'captured' | 'error' | 'completed';
|
|
1063
1084
|
type FinancialStatus = 'approved' | 'new' | 'not-approved' | 'paid' | 'sent-for-payment';
|
|
1064
|
-
type InvoiceRateType = 'unitRate' | 'daily' | 'levy' | 'tax' | 'kva' | 'waterRate' | 'wasteRate' | 'discount';
|
|
1085
|
+
type InvoiceRateType = 'unitRate' | 'daily' | 'levy' | 'tax' | 'kva' | 'waterRate' | 'wasteRate' | 'discount' | 'misc' | 'feedInTariff' | 'latePaymentCharge';
|
|
1065
1086
|
interface Invoice<IDType = ObjectId | string, DateType = Date> {
|
|
1066
1087
|
_id: IDType;
|
|
1067
1088
|
jobId?: string | null;
|
|
@@ -1170,13 +1191,14 @@ interface InvoiceCapture<IDType = ObjectId | string> {
|
|
|
1170
1191
|
extractExpiry?: Date;
|
|
1171
1192
|
version: number;
|
|
1172
1193
|
status: 'pending' | 'uploading' | 'uploaded' | 'extracting' | 'extracted' | 'capturing' | 'captured' | 'failed';
|
|
1173
|
-
extractType
|
|
1174
|
-
metrics
|
|
1175
|
-
captureStartTime
|
|
1176
|
-
captureEndTime
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1194
|
+
extractType: 'parser-edi' | 'textract' | 'llmwhisperer' | null;
|
|
1195
|
+
metrics: {
|
|
1196
|
+
captureStartTime: Date | null;
|
|
1197
|
+
captureEndTime: Date | null;
|
|
1198
|
+
captureDmg: number;
|
|
1199
|
+
extractStartTime: Date | null;
|
|
1200
|
+
extractEndTime: Date | null;
|
|
1201
|
+
extractDmg: number;
|
|
1180
1202
|
};
|
|
1181
1203
|
results?: any;
|
|
1182
1204
|
metadata?: InvoiceCaptureMetadata;
|
package/dist/index.d.ts
CHANGED
|
@@ -1025,21 +1025,42 @@ interface InvoiceValues<DateType = Date | string> {
|
|
|
1025
1025
|
totalWasteCost?: number;
|
|
1026
1026
|
totalDaily?: number;
|
|
1027
1027
|
totalLevy?: number;
|
|
1028
|
+
totalCCL?: number;
|
|
1029
|
+
totalMisc?: number;
|
|
1030
|
+
totalFeedInTariff?: number;
|
|
1031
|
+
totalLatePayment?: number;
|
|
1028
1032
|
totalKva?: number;
|
|
1029
1033
|
totalUnits?: number;
|
|
1030
1034
|
totalWaterVolume?: number;
|
|
1031
1035
|
totalWasteVolume?: number;
|
|
1036
|
+
capacity?: number;
|
|
1032
1037
|
netTotalCost?: number;
|
|
1033
1038
|
totalTax?: number;
|
|
1034
1039
|
totalCost?: number;
|
|
1035
|
-
meteredConsumption?:
|
|
1036
|
-
correctedConsumption?:
|
|
1037
|
-
correctionFactor?:
|
|
1038
|
-
calorificValue?:
|
|
1039
|
-
readFactor?:
|
|
1040
|
+
meteredConsumption?: number;
|
|
1041
|
+
correctedConsumption?: number;
|
|
1042
|
+
correctionFactor?: number;
|
|
1043
|
+
calorificValue?: number;
|
|
1044
|
+
readFactor?: number;
|
|
1045
|
+
sewerageReturnPercentage?: number;
|
|
1040
1046
|
type?: string;
|
|
1041
1047
|
startRead?: string;
|
|
1042
1048
|
endRead?: string;
|
|
1049
|
+
supplierName?: string;
|
|
1050
|
+
supplierVatNumber?: string;
|
|
1051
|
+
recipient?: string;
|
|
1052
|
+
invoiceDueDate?: Date;
|
|
1053
|
+
invoiceStartDate?: Date;
|
|
1054
|
+
invoiceEndDate?: Date;
|
|
1055
|
+
startReadType?: string;
|
|
1056
|
+
endReadType?: string;
|
|
1057
|
+
isFinal?: boolean;
|
|
1058
|
+
units?: string;
|
|
1059
|
+
supplyAddress?: string;
|
|
1060
|
+
contractEndDate?: Date;
|
|
1061
|
+
contractNoticeDate?: Date;
|
|
1062
|
+
invoiceValuesComment?: string;
|
|
1063
|
+
meterValuesComment?: string;
|
|
1043
1064
|
}
|
|
1044
1065
|
interface InvoiceRate {
|
|
1045
1066
|
id: string;
|
|
@@ -1061,7 +1082,7 @@ interface InvoiceRate {
|
|
|
1061
1082
|
}
|
|
1062
1083
|
type InvoiceStatus = 'processing' | 'pending' | 'uploading' | 'queued' | 'captured' | 'error' | 'completed';
|
|
1063
1084
|
type FinancialStatus = 'approved' | 'new' | 'not-approved' | 'paid' | 'sent-for-payment';
|
|
1064
|
-
type InvoiceRateType = 'unitRate' | 'daily' | 'levy' | 'tax' | 'kva' | 'waterRate' | 'wasteRate' | 'discount';
|
|
1085
|
+
type InvoiceRateType = 'unitRate' | 'daily' | 'levy' | 'tax' | 'kva' | 'waterRate' | 'wasteRate' | 'discount' | 'misc' | 'feedInTariff' | 'latePaymentCharge';
|
|
1065
1086
|
interface Invoice<IDType = ObjectId | string, DateType = Date> {
|
|
1066
1087
|
_id: IDType;
|
|
1067
1088
|
jobId?: string | null;
|
|
@@ -1170,13 +1191,14 @@ interface InvoiceCapture<IDType = ObjectId | string> {
|
|
|
1170
1191
|
extractExpiry?: Date;
|
|
1171
1192
|
version: number;
|
|
1172
1193
|
status: 'pending' | 'uploading' | 'uploaded' | 'extracting' | 'extracted' | 'capturing' | 'captured' | 'failed';
|
|
1173
|
-
extractType
|
|
1174
|
-
metrics
|
|
1175
|
-
captureStartTime
|
|
1176
|
-
captureEndTime
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1194
|
+
extractType: 'parser-edi' | 'textract' | 'llmwhisperer' | null;
|
|
1195
|
+
metrics: {
|
|
1196
|
+
captureStartTime: Date | null;
|
|
1197
|
+
captureEndTime: Date | null;
|
|
1198
|
+
captureDmg: number;
|
|
1199
|
+
extractStartTime: Date | null;
|
|
1200
|
+
extractEndTime: Date | null;
|
|
1201
|
+
extractDmg: number;
|
|
1180
1202
|
};
|
|
1181
1203
|
results?: any;
|
|
1182
1204
|
metadata?: InvoiceCaptureMetadata;
|