{"_id":"@adaptive-ds/lexware","_rev":"3-da33055fd0abeac3e20cd1386e2be092","name":"@adaptive-ds/lexware","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@adaptive-ds/lexware","version":"0.1.0","keywords":["lexware","lexware-office","api-client","typescript","result"],"license":"MIT","_id":"@adaptive-ds/lexware@0.1.0","maintainers":[{"name":"david1gp","email":"david1gruppenplan@gmail.com"}],"homepage":"https://github.com/david1gp/lexware","bugs":{"url":"https://github.com/david1gp/lexware/issues"},"dist":{"shasum":"110ec562ac0bbe6f5f15bb64786f7976e972ea91","tarball":"https://registry.npmjs.org/@adaptive-ds/lexware/-/lexware-0.1.0.tgz","fileCount":223,"integrity":"sha512-4j0M+FCMK3LWcXyDwysNE8PdlSXljyin3HEznxJ9F27ZMfifZxq3YyH6I7DX5o36CAltXplGeVI0ZSnw2hXlzA==","signatures":[{"sig":"MEQCIHXXoLt8ppBQVXTEvsj034DA7X2Ds2czb16O5/aVJfmiAiBuowclFMxyk7N73Ur67cIx1EprAMGvAWqL8Cg3e9jOgg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":151777},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./*":{"types":"./dist/*.d.ts","import":"./dist/*.js"}},"gitHead":"3075e262d8eb237074203372cba027ae31647d2a","imports":{"#result":"@adaptive-ds/result"},"private":false,"scripts":{"test":"bun test","build":"rm -rf ./dist && bun tsc -p ./tsconfig.lib.json","check":"bunx tsgo --noEmit","clean":"rm -rf ./dist","reset":"rm -rf ./node_modules","format":"biome format --write src package.json tsconfig.json tsconfig.lib.json biome.json","test:w":"bun test --watch","update":"bun update","release":"bash ./ops/release.sh"},"_npmUser":{"name":"david1gp","email":"david1gruppenplan@gmail.com"},"prettier":{"semi":false,"printWidth":120,"trailingComma":"all"},"repository":{"url":"git+https://github.com/david1gp/lexware.git","type":"git"},"_npmVersion":"10.9.4","description":"TypeScript Result-based API clients for Lexware Office.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.13","typescript":"^6.0.3","@biomejs/biome":"^2.5.2"},"peerDependencies":{"valibot":"^1.2.0","@adaptive-ds/result":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/lexware_0.1.0_1783357292380_0.6841056363630595","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Renamed to @adaptive-ds/lexware-client"},"0.1.1":{"name":"@adaptive-ds/lexware","version":"0.1.1","keywords":["lexware","lexware-office","api-client","typescript","result"],"license":"MIT","_id":"@adaptive-ds/lexware@0.1.1","maintainers":[{"name":"david1gp","email":"david1gruppenplan@gmail.com"}],"homepage":"https://github.com/david1gp/lexware","bugs":{"url":"https://github.com/david1gp/lexware/issues"},"bin":{"lexware":"dist/cli.js"},"dist":{"shasum":"7947d854d0d3f1d965ef77aef2ab05b723ab9f90","tarball":"https://registry.npmjs.org/@adaptive-ds/lexware/-/lexware-0.1.1.tgz","fileCount":359,"integrity":"sha512-q0Ae2X9uwOxmSrTm6I0/Q1CxZGppg3rfu1RK0ZPZOBWRexqkrdM4g6vS/nO9NZrT2ZSEm8A/5pNxLnrr4Ylk2A==","signatures":[{"sig":"MEQCIFYjGGboYbYtrD5HxwTg4Xth1BSXmuYy4MgVuf5TICxdAiA0H8x8SUDyC7oct/6ZJGW6AZmxs2gZqSgaJZYKKjO6zQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@adaptive-ds%2flexware@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":817812},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./*":{"types":"./dist/*.d.ts","import":"./dist/*.js"}},"gitHead":"6425e753842e7e8853e8800a69b38364ca774fc8","imports":{"#result":"@adaptive-ds/result"},"private":false,"scripts":{"test":"bun run build && bun test","build":"rm -rf ./dist && bun tsc -p ./tsconfig.lib.json && chmod +x ./dist/cli.js","check":"bun tsc --noEmit","clean":"rm -rf ./dist","reset":"rm -rf ./node_modules","format":"biome format --write src package.json tsconfig.json tsconfig.lib.json biome.json","test:w":"bun test --watch","update":"bun update","release":"bash ./ops/release.sh"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:35cb757b-4979-44e3-8641-3909dbe765da"}},"prettier":{"semi":false,"printWidth":120,"trailingComma":"all"},"repository":{"url":"git+https://github.com/david1gp/lexware.git","type":"git"},"_npmVersion":"12.0.2","description":"TypeScript Result-based API clients for Lexware Office.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@stricli/core":"^1.2.5"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.13","typescript":"^6.0.3","@biomejs/biome":"^2.5.2"},"peerDependencies":{"valibot":"^1.2.0","@adaptive-ds/result":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/lexware_0.1.1_1786943454047_0.7874206374637731","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Renamed to @adaptive-ds/lexware-client"}},"time":{"created":"2026-07-06T17:01:32.160Z","modified":"2026-08-18T05:29:59.539Z","0.1.0":"2026-07-06T17:01:32.522Z","0.1.1":"2026-08-17T05:10:54.197Z"},"bugs":{"url":"https://github.com/david1gp/lexware/issues"},"license":"MIT","homepage":"https://github.com/david1gp/lexware","keywords":["lexware","lexware-office","api-client","typescript","result"],"repository":{"url":"git+https://github.com/david1gp/lexware.git","type":"git"},"description":"TypeScript Result-based API clients for Lexware Office.","maintainers":[{"name":"david1gp","email":"david1gruppenplan@gmail.com"}],"readme":"# @adaptive-ds/lexware\n\nResult-based TypeScript API clients for Lexware Office.\n\n```ts\nimport { articleList, lexwareClientCreate } from \"@adaptive-ds/lexware\"\n\nconst client = lexwareClientCreate({ accessToken: process.env.LEXWARE_TOKEN ?? \"\" })\nif (!client.success) throw new Error(client.errorMessage)\n\nconst articles = await articleList(client.data, { type: \"PRODUCT\" })\nif (!articles.success) {\n  console.error(articles.errorMessage)\n}\n```\n\nFallible functions return `Result<T>` or `PromiseResult<T>` from `#result`. Runtime inputs and JSON responses are validated with Valibot.\n\n## CLI\n\nInstall the package and run the `lexware` executable:\n\n```bash\nbun add --global @adaptive-ds/lexware\nlexware --help\n```\n\nThe CLI prints one JSON result per invocation. Successes go to stdout. Help also returns a successful JSON result. Failures go to stderr and exit with status 1.\n\nCommands accept named options only. Positional values and JSON input are rejected. Use `--access-token` for authentication. It takes precedence over `LEXWARE_TOKEN`, which takes precedence over `LEXWARE_ACCESS_TOKEN`.\n\n```bash\nexport LEXWARE_TOKEN=your-token\nlexware article list --page 1 --type PRODUCT\nlexware article get --id article-id\nlexware article create --type PRODUCT --title \"Desk\" --leading-price NET --net-price 99\n```\n\nUse `--base-url` to target another API endpoint. Nested fields use prefixed option names. Variadic fields can be repeated, which keeps each line item typed without accepting a JSON document:\n\n```bash\nlexware invoice create \\\n  --base-url https://api.example.test \\\n  --voucher-date 2026-08-16T00:00 \\\n  --address-name \"Example customer\" --address-country-code DE \\\n  --line-item-type custom \\\n  --line-item-name Consulting \\\n  --line-item-quantity 1 \\\n  --line-item-unit-name Hours \\\n  --line-item-unit-price-currency EUR \\\n  --line-item-unit-price-net-amount 100 \\\n  --line-item-unit-price-tax-rate-percentage 19 \\\n  --total-price-currency EUR \\\n  --tax-conditions-tax-type net \\\n  --shipping-conditions-shipping-type none\n```\n\nFile commands return metadata as JSON. Upload reads the local path. Download keeps binary data out of the JSON result unless `--output` is supplied, in which case it writes the file there.\n\n```bash\nlexware file upload --type PDF --filename invoice.pdf --content-type application/pdf --path ./invoice.pdf\nlexware file download --id file-id\nlexware file download --id file-id --output ./downloaded.pdf\n```\n","readmeFilename":"README.md"}