Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.connector
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONNECTOR_VERSION=6.26.2
CONNECTOR_VERSION=6.27.1
14 changes: 12 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,17 @@ tasks:
create-onboarding-pdf-with-custom-png-logo:
desc: Gets the onboarding document as PDF
cmds:
- 'echo -n ''{"schoolLogo": "{{.LOGO_BASE64}}"}'' | http -b POST localhost:8099/students/{{ .STUDENT_ID }}/onboarding Accept:application/pdf ''X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'' > {{ .STUDENT_ID }}_onboarding.pdf'
- 'echo -n ''{"logo": {"bytes": "{{.LOGO_BASE64}}"}}'' | http -b POST localhost:8099/students/{{ .STUDENT_ID }}/onboarding Accept:application/pdf ''X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'' > {{ .STUDENT_ID }}_onboarding.pdf'
requires:
vars: [STUDENT_ID]
vars:
LOGO_BASE64:
sh: 'cat assets/Logo_GM.png | {{if eq OS "darwin"}}base64{{else}}base64 -w 0{{end}}'

create-onboarding-pdf-with-custom-values:
desc: Gets the onboarding document as PDF
cmds:
- 'echo -n ''{ "logo": { "bytes": "{{.LOGO_BASE64}}", "x": 15, "y": 15, "maxWidth": 50, "maxHeight": 50 }, "fields": { "salutation": "Moin {{"{{"}}student.givenname{{"}}"}}," } }'' | http -b POST localhost:8099/students/{{ .STUDENT_ID }}/onboarding Accept:application/pdf ''X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'' > {{ .STUDENT_ID }}_onboarding.pdf'
requires:
vars: [STUDENT_ID]
vars:
Expand All @@ -61,7 +71,7 @@ tasks:
create-onboarding-pdf-with-custom-jpg-logo:
desc: Gets the onboarding document as PDF
cmds:
- 'echo -n ''{"schoolLogo": "{{.LOGO_BASE64}}"}'' | http -b POST localhost:8099/students/{{ .STUDENT_ID }}/onboarding Accept:application/pdf ''X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'' > {{ .STUDENT_ID }}_onboarding.pdf'
- 'echo -n ''{"logo": {"bytes": "{{.LOGO_BASE64}}"}}'' | http -b POST localhost:8099/students/{{ .STUDENT_ID }}/onboarding Accept:application/pdf ''X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'' > {{ .STUDENT_ID }}_onboarding.pdf'
requires:
vars: [STUDENT_ID]
vars:
Expand Down
Binary file modified assets/template_onboarding.pdf
Binary file not shown.
94 changes: 47 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"mustache": "^4.2.0",
"pdf-lib": "1.17.1",
"qrcode": "1.5.4",
"zod": "^3.24.4",
"zod": "^3.25.7",
"zod-validation-error": "^3.4.1"
},
"devDependencies": {
"@js-soft/docdb-access-mongo": "^1.2.0",
"@js-soft/eslint-config-ts": "^1.6.14",
"@js-soft/license-check": "^1.0.9",
"@js-soft/ts-utils": "^2.3.3",
"@nmshd/connector-types": "^6.26.2",
"@nmshd/typescript-rest": "^3.1.3",
"@types/express": "^5.0.1",
"@nmshd/connector-types": "^6.27.1",
"@nmshd/typescript-rest": "^3.1.4",
"@types/express": "^5.0.2",
"@types/luxon": "^3.6.2",
"@types/mustache": "^4.2.6",
"@types/qrcode": "^1.5.5",
Expand Down
Loading