-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: PRDP-122 rework with node engine #44
Changes from all commits
98722c7
6f6796e
835414b
42cb3e9
478e291
298d5a3
3b2809b
0b1c6d6
1b8e9ec
7ee2cfa
50716f7
e52278c
418da45
770af74
416be16
18551d0
d110f02
c90bc9c
6372049
42c6b72
576cae9
0dd8a92
1fd0207
4933173
c55ac74
d8badf7
a5fadb7
540c9d7
27e28fa
21f7e0a
c03dcdb
4e94774
df598bc
122fb30
619f2c3
3969cab
57dc5ab
8b32130
1e5f274
4fcf94b
fa6f851
085138e
a2c09fa
f4670e4
91a71c3
537820e
298da9b
023c699
bb1be91
5acb844
e51ce43
bdbd1a2
f2df432
cb6193f
33b4fd2
6f54a01
21731a0
5e8541a
7badaca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,14 @@ const FormData = require('form-data'); | |
|
||
const pdf_engine_uri = process.env.PDF_ENGINE_URI; | ||
|
||
function generatePDF(zipFile, inputData, engineType) { | ||
function generatePDF(zipFile, inputData) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. upd documentation to remove useless param https://pagopa.atlassian.net/wiki/spaces/PPR/pages/718012499/Design+Review+PDF+Engine#Request |
||
const form = new FormData(); | ||
if (zipFile !== null) { | ||
form.append('template', zipFile); | ||
} | ||
if (inputData !== null) { | ||
form.append('data', inputData); | ||
} | ||
if (engineType !== null) { | ||
form.append("generatorType", engineType); | ||
} | ||
|
||
return postForm(pdf_engine_uri, form); | ||
} | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
bin | ||
obj | ||
csx | ||
.vs | ||
edge | ||
Publish | ||
|
||
*.user | ||
*.suo | ||
*.cscfg | ||
*.Cache | ||
project.lock.json | ||
|
||
/packages | ||
/TestResults | ||
|
||
/tools/NuGet.exe | ||
/App_Data | ||
/secrets | ||
/data | ||
.secrets | ||
appsettings.json | ||
local.settings.json | ||
|
||
node_modules | ||
dist | ||
|
||
# Local python packages | ||
.python_packages/ | ||
|
||
# Python Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Azurite artifacts | ||
__blobstorage__ | ||
__queuestorage__ | ||
__azurite_db*__.json |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
testEnvironment: "node", | ||
testPathIgnorePatterns: ["dist", "/node_modules", "__integrations__"], | ||
testRegex: "(/__tests__/.*\\.(test|spec))\\.(jsx?|tsx?)$", | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing only node codereview