feat(api-client): generated BFF client library (closes #66) #70

Merged
not merged 3 commits from feat/66-api-client into main 2026-07-01 10:51:02 +00:00
3 changed files with 11 additions and 2 deletions
Showing only changes of commit c3f0710a18 - Show all commits

View File

@@ -8,6 +8,13 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint"
},
"generate": {
"executor": "nx:run-commands",
"options": {
"command": "orval --config orval.config.ts",
"cwd": "libs/api-client"
}
}
}
}

View File

@@ -1 +1,3 @@
export {};
// The BFF API client is generated from services/bff/openapi.json (orval); never hand-edit
// src/lib/generated. Re-run `nx run api-client:generate` after the BFF spec changes.
export * from './lib/generated/bff-api';

View File

@@ -8,7 +8,7 @@ import {
BffApiV1Service,
type OpenbaarEntry,
type SubmitAccepted,
} from 'api-client';
} from '../index';
describe('BffApiV1Service (generated from services/bff/openapi.json)', () => {
let service: BffApiV1Service;