@etainabl/nodejs-sdk 1.3.151 → 1.3.152
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/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -877,7 +877,9 @@ interface CompanySettings<IDType = ObjectId | string> {
|
|
|
877
877
|
invoiceValidationSettings?: CompanyInvoiceValidationSettings<IDType>;
|
|
878
878
|
autoInvoiceValidation?: boolean;
|
|
879
879
|
splitInvoices?: boolean;
|
|
880
|
+
completedInvoiceFilename?: 'original' | 'generated';
|
|
880
881
|
invoiceFilename?: {
|
|
882
|
+
format?: string;
|
|
881
883
|
legalNameMaxLength?: number;
|
|
882
884
|
siteNameMaxLength?: number;
|
|
883
885
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -877,7 +877,9 @@ interface CompanySettings<IDType = ObjectId | string> {
|
|
|
877
877
|
invoiceValidationSettings?: CompanyInvoiceValidationSettings<IDType>;
|
|
878
878
|
autoInvoiceValidation?: boolean;
|
|
879
879
|
splitInvoices?: boolean;
|
|
880
|
+
completedInvoiceFilename?: 'original' | 'generated';
|
|
880
881
|
invoiceFilename?: {
|
|
882
|
+
format?: string;
|
|
881
883
|
legalNameMaxLength?: number;
|
|
882
884
|
siteNameMaxLength?: number;
|
|
883
885
|
};
|
package/dist/index.js
CHANGED
|
@@ -17439,8 +17439,8 @@ var units = [
|
|
|
17439
17439
|
var getMeterPointNumberBottomLine = (meterPointNumber) => {
|
|
17440
17440
|
if (!meterPointNumber) return "";
|
|
17441
17441
|
const mpan = String(meterPointNumber).replace(/\s/g, "");
|
|
17442
|
-
if (mpan.length === 21) {
|
|
17443
|
-
return mpan.substring(8,
|
|
17442
|
+
if (mpan.length === 21 || mpan.length === 22) {
|
|
17443
|
+
return mpan.substring(8, mpan.length);
|
|
17444
17444
|
}
|
|
17445
17445
|
if (mpan.length === 13) {
|
|
17446
17446
|
return mpan;
|