feat(core): Enhanced document generation features and added translation capabilities

This commit is contained in:
2024-11-30 20:54:15 +01:00
parent e6cd135920
commit af77fcbe0e
18 changed files with 483 additions and 322 deletions

133
pnpm-lock.yaml generated
View File

@@ -30,8 +30,8 @@ importers:
specifier: ^5.0.18
version: 5.0.18
'@push.rocks/smartpdf':
specifier: ^3.1.7
version: 3.1.7
specifier: ^3.1.8
version: 3.1.8
'@push.rocks/smarttime':
specifier: ^4.0.8
version: 4.0.8
@@ -268,8 +268,8 @@ packages:
resolution: {integrity: sha512-2Yv65nlWnWlSpe3fXEyX5i7fx5kIKo4Qbcj+hMO0odwaneFjfXw5fdum+4yL20O0QiaHpia0cYQ9xpNMqrBwHg==}
engines: {node: '>=6.9.0'}
'@cloudflare/workers-types@4.20241112.0':
resolution: {integrity: sha512-Q4p9bAWZrX14bSCKY9to19xl0KMU7nsO5sJ2cTVspHoypsjPUMeQCsjHjmsO2C4Myo8/LPeDvmqFmkyNAPPYZw==}
'@cloudflare/workers-types@4.20241127.0':
resolution: {integrity: sha512-UqlvtqV8eI0CdPR7nxlbVlE52+lcjHvGdbYXEPwisy23+39RsFV7OOy0da0moJAhqnL2OhDmWTOaKdsVcPHiJQ==}
'@colors/colors@1.6.0':
resolution: {integrity: sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==}
@@ -611,8 +611,8 @@ packages:
'@hapi/bourne@3.0.0':
resolution: {integrity: sha512-Waj1cwPXJDucOib4a3bAISsKJVb15MKi9IvmTI/7ssVEm6sywXGjVJDhl6/umt1pK1ZS7PacXU3A1PmFKHEZ2w==}
'@happy-dom/global-registrator@15.11.6':
resolution: {integrity: sha512-TGE7tUM3+0h47wfj2zS+madL53jVq3f2/YvJqrA/clwv3wz5Mm2jHhTpbLZSSydNvDwBc9l5uNt5qylWClj6uQ==}
'@happy-dom/global-registrator@15.11.7':
resolution: {integrity: sha512-mfOoUlIw8VBiJYPrl5RZfMzkXC/z7gbSpi2ecycrj/gRWLq2CMV+Q+0G+JPjeOmuNFgg0skEIzkVFzVYFP6URw==}
engines: {node: '>=18.0.0'}
'@isaacs/cliui@8.0.2':
@@ -835,8 +835,8 @@ packages:
'@push.rocks/smartpath@5.0.18':
resolution: {integrity: sha512-kIyRTlOoeEth5b4Qp8KPUxNOGNdvhb2aD0hbHfF3oGTQ0xnDdgB1l03/4bIoapHG48OrTgh4uQ5tUorykgdOzw==}
'@push.rocks/smartpdf@3.1.7':
resolution: {integrity: sha512-Qtyz4CnrxEcNSe09r4wpOdTwfu1pihBLYiPFkb9iwF3SrOK0rkH4qKXnsnYAVCumOoGdQdr3NhNjwpe9vqjoIw==}
'@push.rocks/smartpdf@3.1.8':
resolution: {integrity: sha512-9fxshJAp6VCkrAFWXAFS7X7QzZLFSWM/JzDtllYW7gaWzRKxsMCdfaNy1vKsGq5uK5L91Lrd+A9Olp1mx4xs1w==}
'@push.rocks/smartpromise@4.0.4':
resolution: {integrity: sha512-Mbh+DnX4+rVPEZgYU7LtTJI/AYoNn7+h27AycEFpPJW41DCfjTiXiI0+ecNdyO1AfbcL0Q02RQjoEauEWx5FQg==}
@@ -1409,8 +1409,8 @@ packages:
'@types/node-forge@1.3.11':
resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==}
'@types/node@22.10.0':
resolution: {integrity: sha512-XC70cRZVElFHfIUB40FgZOBbgJYFKKMa5nb9lxcwYstFG/Mi+/Y0bGS+rs6Dmhmkpq4pnNiLiuZAbc02YCOnmA==}
'@types/node@22.10.1':
resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==}
'@types/parse5@6.0.3':
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
@@ -2356,8 +2356,9 @@ packages:
resolution: {integrity: sha512-4kKdWXTtgQ4biIo7hZA396HT062nDVVHPjQcurNZ3o/voYN+o5FUC5kOwuORbpExp3XbTJ3SU7iRipiIhQtovw==}
engines: {node: '>=14'}
gopd@1.0.1:
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
gopd@1.1.0:
resolution: {integrity: sha512-FQoVQnqcdk4hVM4JN1eromaun4iuS34oStkdlLENLdpULsuQcTyXj8w7ayhuUfPwEYZ1ZOooOTT6fdA9Vmx/RA==}
engines: {node: '>= 0.4'}
got@12.6.1:
resolution: {integrity: sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==}
@@ -2373,8 +2374,8 @@ packages:
resolution: {integrity: sha512-4haO1M4mLO91PW57BMsDFf75UmwoRX0GkdD+Faw+Lr+r/OZrOCS0pIBwOL1xCKQqnQzbNFGgK2V2CpBUPeFNTw==}
hasBin: true
happy-dom@15.11.6:
resolution: {integrity: sha512-elX7iUTu+5+3b2+NGQc0L3eWyq9jKhuJJ4GpOMxxT/c2pg9O3L5H3ty2VECX0XXZgRmmRqXyOK8brA2hDI6LsQ==}
happy-dom@15.11.7:
resolution: {integrity: sha512-KyrFvnl+J9US63TEzwoiJOQzZBJY7KgBushJA8X61DMbNsH+2ONkDuLDnCnwUiPTF42tLoEmrPyoqbenVA5zrg==}
engines: {node: '>=18.0.0'}
has-flag@3.0.0:
@@ -3287,8 +3288,8 @@ packages:
pdf-lib@1.17.1:
resolution: {integrity: sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==}
pdf2json@3.0.5:
resolution: {integrity: sha512-Un1yLbSlk/zfwrltgguskExIioXZlFSFwsyXU0cnBorLywbTbcdzmJJEebh+U2cFCtR7y8nDs5lPHAe7ldxjZg==}
pdf2json@3.1.4:
resolution: {integrity: sha512-rS+VapXpXZr+5lUpHmRh3ugXdFXp24p1RyG24yP1DMpqP4t0mrYNGpLtpSbWD42PnQ59GIXofxF+yWb7M+3THg==}
engines: {node: '>=18.12.1', npm: '>=8.19.2'}
hasBin: true
bundledDependencies:
@@ -3442,8 +3443,8 @@ packages:
regenerator-runtime@0.14.1:
resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}
registry-auth-token@5.0.2:
resolution: {integrity: sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==}
registry-auth-token@5.0.3:
resolution: {integrity: sha512-1bpc9IyC+e+CNFRaWyn77tk4xGG4PPUyfakSmA6F6cvUDjrm58dfyJ3II+9yb10EDkHoy1LaPSmHaWLOH3m6HA==}
engines: {node: '>=14'}
registry-url@6.0.1:
@@ -4121,7 +4122,7 @@ snapshots:
'@api.global/typedrequest': 3.1.10
'@api.global/typedrequest-interfaces': 3.0.19
'@api.global/typedsocket': 3.0.1
'@cloudflare/workers-types': 4.20241112.0
'@cloudflare/workers-types': 4.20241127.0
'@design.estate/dees-comms': 1.0.27
'@push.rocks/lik': 6.1.0
'@push.rocks/smartchok': 1.0.34
@@ -4776,7 +4777,7 @@ snapshots:
dependencies:
regenerator-runtime: 0.14.1
'@cloudflare/workers-types@4.20241112.0': {}
'@cloudflare/workers-types@4.20241127.0': {}
'@colors/colors@1.6.0': {}
@@ -5085,9 +5086,9 @@ snapshots:
'@hapi/bourne@3.0.0': {}
'@happy-dom/global-registrator@15.11.6':
'@happy-dom/global-registrator@15.11.7':
dependencies:
happy-dom: 15.11.6
happy-dom: 15.11.7
'@isaacs/cliui@8.0.2':
dependencies:
@@ -5111,7 +5112,7 @@ snapshots:
'@jest/schemas': 29.6.3
'@types/istanbul-lib-coverage': 2.0.6
'@types/istanbul-reports': 3.0.4
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/yargs': 17.0.33
chalk: 4.1.2
@@ -5300,7 +5301,7 @@ snapshots:
'@push.rocks/smartbrowser@2.0.6':
dependencies:
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartpdf': 3.1.7
'@push.rocks/smartpdf': 3.1.8
'@push.rocks/smartpuppeteer': 2.0.2
'@push.rocks/smartunique': 3.0.9
transitivePeerDependencies:
@@ -5568,7 +5569,7 @@ snapshots:
'@push.rocks/smartntml@2.0.8':
dependencies:
'@design.estate/dees-element': 2.0.39
'@happy-dom/global-registrator': 15.11.6
'@happy-dom/global-registrator': 15.11.7
'@push.rocks/smartpromise': 4.0.4
fake-indexeddb: 6.0.0
transitivePeerDependencies:
@@ -5585,7 +5586,7 @@ snapshots:
'@push.rocks/smartpath@5.0.18': {}
'@push.rocks/smartpdf@3.1.7':
'@push.rocks/smartpdf@3.1.8':
dependencies:
'@push.rocks/smartbuffer': 3.0.4
'@push.rocks/smartdelay': 3.0.5
@@ -5596,10 +5597,10 @@ snapshots:
'@push.rocks/smartpuppeteer': 2.0.2
'@push.rocks/smartunique': 3.0.9
'@tsclass/tsclass': 4.1.2
'@types/express': 4.17.21
'@types/express': 5.0.0
express: 4.21.1
pdf-lib: 1.17.1
pdf2json: 3.0.5
pdf2json: 3.1.4
pdf2pic: 3.1.3
transitivePeerDependencies:
- bufferutil
@@ -6393,14 +6394,14 @@ snapshots:
'@types/accepts@1.3.7':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/babel__code-frame@7.0.6': {}
'@types/body-parser@1.19.5':
dependencies:
'@types/connect': 3.4.38
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/buffer-json@2.0.3': {}
@@ -6416,17 +6417,17 @@ snapshots:
'@types/clean-css@4.2.11':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
source-map: 0.6.1
'@types/co-body@6.1.3':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/qs': 6.9.17
'@types/connect@3.4.38':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/content-disposition@0.5.8': {}
@@ -6439,11 +6440,11 @@ snapshots:
'@types/connect': 3.4.38
'@types/express': 5.0.0
'@types/keygrip': 1.0.6
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/cors@2.8.17':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/debounce@1.2.4': {}
@@ -6457,14 +6458,14 @@ snapshots:
'@types/express-serve-static-core@4.19.6':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/qs': 6.9.17
'@types/range-parser': 1.2.7
'@types/send': 0.17.4
'@types/express-serve-static-core@5.0.2':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/qs': 6.9.17
'@types/range-parser': 1.2.7
'@types/send': 0.17.4
@@ -6489,30 +6490,30 @@ snapshots:
'@types/from2@2.3.5':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/fs-extra@11.0.4':
dependencies:
'@types/jsonfile': 6.1.4
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/fs-extra@9.0.13':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/glob@7.2.0':
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/glob@8.1.0':
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/gunzip-maybe@1.4.2':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/hast@3.0.4':
dependencies:
@@ -6546,7 +6547,7 @@ snapshots:
'@types/jsonfile@6.1.4':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/keygrip@1.0.6': {}
@@ -6563,7 +6564,7 @@ snapshots:
'@types/http-errors': 2.0.4
'@types/keygrip': 1.0.6
'@types/koa-compose': 3.2.8
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/mdast@4.0.4':
dependencies:
@@ -6581,9 +6582,9 @@ snapshots:
'@types/node-forge@1.3.11':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/node@22.10.0':
'@types/node@22.10.1':
dependencies:
undici-types: 6.20.0
@@ -6593,7 +6594,7 @@ snapshots:
'@types/qrcode@1.5.5':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/qs@6.9.17': {}
@@ -6605,19 +6606,19 @@ snapshots:
'@types/s3rver@3.7.4':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/semver@7.5.8': {}
'@types/send@0.17.4':
dependencies:
'@types/mime': 1.3.5
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/serve-static@1.15.7':
dependencies:
'@types/http-errors': 2.0.4
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/send': 0.17.4
'@types/sinon-chai@3.2.12':
@@ -6637,11 +6638,11 @@ snapshots:
'@types/tar-stream@2.2.3':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/through2@2.0.41':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/triple-beam@1.3.5': {}
@@ -6665,7 +6666,7 @@ snapshots:
'@types/whatwg-url@8.2.2':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/webidl-conversions': 7.0.3
'@types/which@2.0.2': {}
@@ -6674,11 +6675,11 @@ snapshots:
'@types/ws@7.4.7':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/ws@8.5.13':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
'@types/yargs-parser@21.0.3': {}
@@ -6688,7 +6689,7 @@ snapshots:
'@types/yauzl@2.10.3':
dependencies:
'@types/node': 22.10.0
'@types/node': 22.10.1
optional: true
'@ungap/structured-clone@1.2.0': {}
@@ -7171,7 +7172,7 @@ snapshots:
dependencies:
es-define-property: 1.0.0
es-errors: 1.3.0
gopd: 1.0.1
gopd: 1.1.0
define-lazy-prop@2.0.0: {}
@@ -7264,7 +7265,7 @@ snapshots:
dependencies:
'@types/cookie': 0.4.1
'@types/cors': 2.8.17
'@types/node': 22.10.0
'@types/node': 22.10.1
accepts: 1.3.8
base64id: 2.0.0
cookie: 0.4.2
@@ -7654,7 +7655,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
gopd@1.0.1:
gopd@1.1.0:
dependencies:
get-intrinsic: 1.2.4
@@ -7685,7 +7686,7 @@ snapshots:
pumpify: 1.5.1
through2: 2.0.5
happy-dom@15.11.6:
happy-dom@15.11.7:
dependencies:
entities: 4.5.0
webidl-conversions: 7.0.0
@@ -7955,7 +7956,7 @@ snapshots:
jest-util@29.7.0:
dependencies:
'@jest/types': 29.6.3
'@types/node': 22.10.0
'@types/node': 22.10.1
chalk: 4.1.2
ci-info: 3.9.0
graceful-fs: 4.2.11
@@ -8734,7 +8735,7 @@ snapshots:
package-json@8.1.1:
dependencies:
got: 12.6.1
registry-auth-token: 5.0.2
registry-auth-token: 5.0.3
registry-url: 6.0.1
semver: 7.6.3
@@ -8782,7 +8783,7 @@ snapshots:
pako: 1.0.11
tslib: 1.14.1
pdf2json@3.0.5: {}
pdf2json@3.1.4: {}
pdf2pic@3.1.3:
dependencies:
@@ -8954,7 +8955,7 @@ snapshots:
regenerator-runtime@0.14.1: {}
registry-auth-token@5.0.2:
registry-auth-token@5.0.3:
dependencies:
'@pnpm/npm-conf': 2.3.1
@@ -9115,7 +9116,7 @@ snapshots:
es-errors: 1.3.0
function-bind: 1.1.2
get-intrinsic: 1.2.4
gopd: 1.0.1
gopd: 1.1.0
has-property-descriptors: 1.0.2
setprototypeof@1.1.0: {}