@measurequick/measurequick-report-generator 1.5.201 → 1.5.202
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/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PDFDocument } from "pdf-lib";
|
|
2
2
|
import * as base64 from "../base-64/icons.js";
|
|
3
3
|
import * as pdf from "../base-64/mq-vitals-heatpump-heating.js";
|
|
4
|
-
import * as systemInfoPage from "./system-info-page.js";
|
|
5
4
|
import * as util from "../util.js";
|
|
6
5
|
import * as notesSummaryPage from "./notes-summary-page.js";
|
|
7
6
|
|
|
@@ -345,18 +344,6 @@ export async function getReport(payload, _test) {
|
|
|
345
344
|
// Skip pass/fail subsystem review for heat pump heating
|
|
346
345
|
form.getTextField("SSR1").setText("Heat Pump Heating Mode");
|
|
347
346
|
|
|
348
|
-
// Add system info page
|
|
349
|
-
if (payload.meta.report_type != "FullReport") {
|
|
350
|
-
let systemInfoPageBase64 = await systemInfoPage.getReport(payload);
|
|
351
|
-
const systemInfoPageDoc = systemInfoPageBase64
|
|
352
|
-
? await PDFDocument.load(util._base64ToArrayBuffer(systemInfoPageBase64.data))
|
|
353
|
-
: false;
|
|
354
|
-
const [_systemInfoPageDoc] = systemInfoPageDoc
|
|
355
|
-
? await pdfDoc.copyPages(systemInfoPageDoc, [0])
|
|
356
|
-
: false;
|
|
357
|
-
if (_systemInfoPageDoc) pdfDoc.insertPage(pdfDoc.getPages().length, _systemInfoPageDoc);
|
|
358
|
-
}
|
|
359
|
-
|
|
360
347
|
// flatten form fields before adding AI summary pages
|
|
361
348
|
form.flatten();
|
|
362
349
|
|