@etainabl/nodejs-sdk 1.3.133 → 1.3.135

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
@@ -1055,7 +1055,7 @@ interface InvoiceValues<DateType = Date | string> {
1055
1055
  startReadType?: string;
1056
1056
  endReadType?: string;
1057
1057
  isFinal?: boolean;
1058
- units?: string;
1058
+ units?: ETNUnit;
1059
1059
  supplyAddress?: string;
1060
1060
  contractEndDate?: Date;
1061
1061
  contractNoticeDate?: Date;
@@ -1064,21 +1064,21 @@ interface InvoiceValues<DateType = Date | string> {
1064
1064
  }
1065
1065
  interface InvoiceRate {
1066
1066
  id: string;
1067
- consumption?: string;
1068
- cost?: string;
1069
- endDate?: Date | null;
1070
- endRead?: string | null;
1071
- endReadType?: string | null;
1072
- endReadRegister?: string | null;
1073
- endReadUnit?: string | null;
1074
- rateName?: string | null;
1075
- startDate?: Date | null;
1076
- startRead?: string | null;
1077
- startReadType?: string | null;
1078
- startReadRegister?: string | null;
1079
- startReadUnit?: string | null;
1080
- type: InvoiceRateType;
1081
- unitRate?: string | null;
1067
+ rateName: string | null;
1068
+ contractRateName: string | null;
1069
+ consumption: number | null;
1070
+ unitRate: number | null;
1071
+ cost: number | null;
1072
+ startRead: string | null;
1073
+ startReadType: string | null;
1074
+ endRead: string | null;
1075
+ endReadType: string | null;
1076
+ register: string | null;
1077
+ units: string | null;
1078
+ type: InvoiceRateType | null;
1079
+ startDate: Date | null;
1080
+ endDate: Date | null;
1081
+ comment: string | null;
1082
1082
  }
1083
1083
  type InvoiceStatus = 'processing' | 'pending' | 'uploading' | 'queued' | 'captured' | 'error' | 'completed';
1084
1084
  type FinancialStatus = 'approved' | 'new' | 'not-approved' | 'paid' | 'sent-for-payment';
@@ -1287,6 +1287,7 @@ interface ReportMetadata<IDType = ObjectId | string> {
1287
1287
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
1288
1288
  showSimulated?: boolean;
1289
1289
  chartOptions?: any;
1290
+ customOptions?: any;
1290
1291
  readingSource?: Reading['source'];
1291
1292
  dateField?: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
1292
1293
  includeSubMeters?: boolean;
package/dist/index.d.ts CHANGED
@@ -1055,7 +1055,7 @@ interface InvoiceValues<DateType = Date | string> {
1055
1055
  startReadType?: string;
1056
1056
  endReadType?: string;
1057
1057
  isFinal?: boolean;
1058
- units?: string;
1058
+ units?: ETNUnit;
1059
1059
  supplyAddress?: string;
1060
1060
  contractEndDate?: Date;
1061
1061
  contractNoticeDate?: Date;
@@ -1064,21 +1064,21 @@ interface InvoiceValues<DateType = Date | string> {
1064
1064
  }
1065
1065
  interface InvoiceRate {
1066
1066
  id: string;
1067
- consumption?: string;
1068
- cost?: string;
1069
- endDate?: Date | null;
1070
- endRead?: string | null;
1071
- endReadType?: string | null;
1072
- endReadRegister?: string | null;
1073
- endReadUnit?: string | null;
1074
- rateName?: string | null;
1075
- startDate?: Date | null;
1076
- startRead?: string | null;
1077
- startReadType?: string | null;
1078
- startReadRegister?: string | null;
1079
- startReadUnit?: string | null;
1080
- type: InvoiceRateType;
1081
- unitRate?: string | null;
1067
+ rateName: string | null;
1068
+ contractRateName: string | null;
1069
+ consumption: number | null;
1070
+ unitRate: number | null;
1071
+ cost: number | null;
1072
+ startRead: string | null;
1073
+ startReadType: string | null;
1074
+ endRead: string | null;
1075
+ endReadType: string | null;
1076
+ register: string | null;
1077
+ units: string | null;
1078
+ type: InvoiceRateType | null;
1079
+ startDate: Date | null;
1080
+ endDate: Date | null;
1081
+ comment: string | null;
1082
1082
  }
1083
1083
  type InvoiceStatus = 'processing' | 'pending' | 'uploading' | 'queued' | 'captured' | 'error' | 'completed';
1084
1084
  type FinancialStatus = 'approved' | 'new' | 'not-approved' | 'paid' | 'sent-for-payment';
@@ -1287,6 +1287,7 @@ interface ReportMetadata<IDType = ObjectId | string> {
1287
1287
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
1288
1288
  showSimulated?: boolean;
1289
1289
  chartOptions?: any;
1290
+ customOptions?: any;
1290
1291
  readingSource?: Reading['source'];
1291
1292
  dateField?: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
1292
1293
  includeSubMeters?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.3.133",
3
+ "version": "1.3.135",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",