@mseva/digit-ui-module-noc 1.0.79-dev.13 → 1.0.79-dev.15

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.
@@ -21254,10 +21254,12 @@ const NOCEmployeeApplicationOverview = () => {
21254
21254
  });
21255
21255
  const application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$N17 = applicationDetails.Noc) === null || _applicationDetails$N17 === void 0 ? void 0 : _applicationDetails$N17[0];
21256
21256
  const callbackUrl = `${window.location.origin}/digit-ui/employee/noc/esign/complete/${id}`;
21257
+ const authToken = localStorage.getItem('token');
21257
21258
  eSignCertificate({
21258
21259
  fileStoreId,
21259
21260
  tenantId,
21260
- callbackUrl
21261
+ callbackUrl,
21262
+ authToken
21261
21263
  }, {
21262
21264
  onSuccess: () => console.log("✅ eSign initiated successfully"),
21263
21265
  onError: error => {
@@ -21360,12 +21362,8 @@ const NOCEmployeeApplicationOverview = () => {
21360
21362
  }
21361
21363
  const userRoles = (_user5 = user) === null || _user5 === void 0 ? void 0 : (_user5$info = _user5.info) === null || _user5$info === void 0 ? void 0 : (_user5$info$roles = _user5$info.roles) === null || _user5$info$roles === void 0 ? void 0 : _user5$info$roles.map(e => e.code);
21362
21364
  useEffect$1(() => {
21363
- if (workflowDetails) {
21364
- workflowDetails.revalidate();
21365
- }
21366
- if (data) {
21367
- data.revalidate();
21368
- }
21365
+ refetch();
21366
+ workflowDetails.revalidate();
21369
21367
  }, []);
21370
21368
  let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data8 = workflowDetails.data) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.actionState) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.nextActions) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.filter(e => {
21371
21369
  return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
@@ -22766,7 +22764,8 @@ const Inbox = ({
22766
22764
  console.log('employeeName, employeeRole', employeeName, employeeRole);
22767
22765
  const {
22768
22766
  isLoading: isInboxLoading,
22769
- data
22767
+ data,
22768
+ refetch
22770
22769
  } = Digit.Hooks.noc.useInbox({
22771
22770
  tenantId,
22772
22771
  filters: {
@@ -22774,9 +22773,7 @@ const Inbox = ({
22774
22773
  }
22775
22774
  });
22776
22775
  useEffect$1(() => {
22777
- if (data) {
22778
- data.revalidate();
22779
- }
22776
+ refetch();
22780
22777
  }, []);
22781
22778
  const [table, setTable] = useState([]);
22782
22779
  const [statuses, setStatuses] = useState([]);
@@ -29818,6 +29815,8 @@ const CitizenApplicationOverview = () => {
29818
29815
  top: 0,
29819
29816
  behavior: "smooth"
29820
29817
  });
29818
+ refetch();
29819
+ workflowDetails.revalidate();
29821
29820
  }, []);
29822
29821
  useEffect$1(() => {
29823
29822
  var _applicationDetails$N9;