hplx-feature-library 1.0.258 → 1.0.259

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.
@@ -138,7 +138,7 @@ const GET_SERVICE_LIST = "/v1/services", GET_DOCTORS_LIST = "/v1/doctors", GET_B
138
138
  doctor_role_id: Y.window_var.doctor_role_id_for_seg,
139
139
  branch_id: Y.window_var.org_branch_id_for_seg,
140
140
  patient_role_id: M
141
- }, I = await hplxAPI(Y.token, Y.envName).patch(UPDATE_LAB_REPORT, X);
141
+ }, I = await hplxAPI(Y.enc_token, Y.envName).patch(UPDATE_LAB_REPORT, X);
142
142
  return Promise.resolve(I?.data);
143
143
  } catch (X) {
144
144
  return console.error("Error updating lab test reports:", X), Promise.reject(X);
@@ -120698,13 +120698,12 @@ const PrintPediaChartsPdf = memo(
120698
120698
  if (!Qe) throw new Error("Error in generating Lab Report PDF");
120699
120699
  const al = R?.labReportData?.patient_role_id, Gl = R?.labReportData?.patient_name, Yl = `lab_report_${al}_${Date.now()}.pdf`, fl = `lab_reports_print/${Yl}`, Dl = await Rt(Qe, fl);
120700
120700
  if (!Dl) throw new Error("Failed to upload lab report");
120701
- if (!(await updateLabTestReports(
120701
+ (await updateLabTestReports(
120702
120702
  R?.labReportData.test_templates.map((ia) => ia.result_id.toString()),
120703
120703
  Dl?.file_url,
120704
120704
  R?.labReportData?.patient_role_id,
120705
120705
  N.envName
120706
- )).status)
120707
- throw new Error("Failed to upload lab report pdf url");
120706
+ )).status || console.error("Failed to upload lab report pdf url");
120708
120707
  const jl = C + fl, ea = {
120709
120708
  created_by: window.user_id || "1",
120710
120709
  dynamicFieldValue: {
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { P as r } from "./PediatricsCalculatorTable-G0ttbDpi.js";
2
- import { P as e } from "./PatientPopupContainer-DeE_qoD3.js";
2
+ import { P as e } from "./PatientPopupContainer-BcogPwe7.js";
3
3
  import { A as i } from "./Attachments-imJatd2A.js";
4
4
  import { P } from "./PatientAddEdit-C5MnysOS.js";
5
5
  import { S as m } from "./SearchPatients-B91CFBhq.js";
6
6
  import { N as n } from "./NineDots-B3ZRumoi.js";
7
7
  import { U as d } from "./UserProfile-1Pll0yKL.js";
8
- import { P as c } from "./PrintModal-B8AgqLLO.js";
8
+ import { P as c } from "./PrintModal-CwTm7s39.js";
9
9
  import { A as u } from "./AllInvestigationsTable-Dg-YXASz.js";
10
10
  export {
11
11
  u as AllInvestigations,
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PrintModal-B8AgqLLO.js";
1
+ import { P as f } from "../PrintModal-CwTm7s39.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -123,7 +123,7 @@ export interface GlobalWindow {
123
123
  role_id: string;
124
124
  partner_service_enabled: string;
125
125
  key: string;
126
- showToast?: (title: string, subTitle: string, type: string, time: number) => void;
126
+ showToast?: (title: string, subTitle: string, type: string, time: number, position?: string) => void;
127
127
  alert(message?: string): void;
128
128
  filteredUpcomingAppts: I_PATIENT_APPOINTMENT[];
129
129
  doctor_speciality: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.258",
4
+ "version": "1.0.259",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",