Skip to content

Commit

Permalink
Merge pull request #1275 from sriranjan-s/Dev-2.0
Browse files Browse the repository at this point in the history
added eSign UI
  • Loading branch information
sriranjan-s authored Aug 21, 2024
2 parents 40837c8 + 77fa709 commit 3dc7cb8
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/micro-ui/web/micro-ui-internals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"packages/modules/commonPt",
"packages/modules/dss",
"packages/modules/pt",
"packages/modules/tl",
"packages/modules/obps"
],
"author": "Abhinav Kushwaha <abhinav.kushwaha@egovernments.org>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ digiLocker:{
token:"/requester-services-dx/user/token",
issueDoc:"/requester-services-dx/user/issuedfiles",
uri:"/requester-services-dx/user/file"
},
eSign:{
pdfUrl:"/requester-services-dx/eSign/process"
},
engagement: {
document: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ export const DigiLockerService = {
userService: true,
data:data

}),
pdfUrl:(data) =>
Request({
url: Urls.eSign.pdfUrl,
useCache: false,
method: "POST",
auth: true,
userService: true,
data:{pdfUrl:data?.TokenReq?.pdfUrl,redirectUrl:""}
})
};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { useState } from "react";
import { FormStep, RadioOrSelect, RadioButtons } from "@upyog/digit-ui-react-components";

const CommonRedirect = ({ }) => {

return (
<React.Fragment>
<div>
Hello World
</div>
</React.Fragment>
);
};
export default SelectAccessories;
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,21 @@ const ApplicationDetails = () => {
window.open(fileStore[newResponse.filestoreIds[0]], "_blank");
}
};

const fetchDigiLockerDocuments = async (file) => {

let TokenReq = {
pdfUrl:file,
redirectUrl:""
}
const res1 = await Digit.DigiLockerService.pdfUrl({TokenReq})
console.log("res1res1res1res1res1",res1)
window.location.href=res1
}
const printCertificate = async () => {
let res = await Digit.TLService.TLsearch({ tenantId: applicationDetails?.tenantId, filters: { applicationNumber:applicationDetails?.applicationData?.applicationNumber } });
const TLcertificatefile = await Digit.PaymentService.generatePdf(tenantId, { Licenses: res?.Licenses }, "tlcertificate");
const receiptFile = await Digit.PaymentService.printReciept(tenantId, { fileStoreIds: TLcertificatefile.filestoreIds[0] });
fetchDigiLockerDocuments(receiptFile[TLcertificatefile.filestoreIds[0]])
window.open(receiptFile[TLcertificatefile.filestoreIds[0]], "_blank");
setIsDisplayDownloadMenu(false)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ const EmployeeApp = ({ path, url, userType }) => {
)}
/>
<PrivateRoute path={`${path}/new-application`} component={() => <NewApplication parentUrl={url} />} />
<PrivateRoute path={`${path}/common/:filestore`} component={() => <CommonRedirect parentUrl={url} />} />
<PrivateRoute path={`${path}/application-details/:id`} component={() => <ApplicationDetails parentRoute={path} />} />
<PrivateRoute path={`${path}/renew-application-details/:id`} component={(props) => <ReNewApplication {...props} parentRoute={path} />} />
<PrivateRoute path={`${path}/edit-application-details/:id`} component={(props) => <ReNewApplication {...props} header={t("TL_ACTION_RESUBMIT")} parentRoute={path} />} />
Expand Down
1 change: 1 addition & 0 deletions frontend/micro-ui/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"micro-ui-internals/packages/modules/commonPt",
"micro-ui-internals/packages/modules/dss",
"micro-ui-internals/packages/modules/pt",
"micro-ui-internals/packages/modules/tl",
"micro-ui-internals/packages/modules/obps"
],
"engines": {
Expand Down

0 comments on commit 3dc7cb8

Please sign in to comment.