chore(api): mirror generation field in api types + PersonFormData (#689)

Manually mirrors the Spring Boot @Schema additions on PersonNodeDTO,
Person, and PersonUpdateDTO into the generated api.ts so the form +
gutter components compile against a finished type surface. The next
backend dev-profile run + `npm run generate:api` will regenerate the
same shape from the live OpenAPI spec.

PersonFormData gains `generation?: number | null` so PersonEditForm's
$state initialiser typechecks.

Refs #689

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-28 15:41:18 +02:00
parent 8f163f9b77
commit c93d3b03ed
2 changed files with 7 additions and 0 deletions

View File

@@ -1666,6 +1666,8 @@ export interface components {
birthYear?: number;
/** Format: int32 */
deathYear?: number;
/** Format: int32 */
generation?: number;
};
Person: {
/** Format: uuid */
@@ -1681,6 +1683,8 @@ export interface components {
birthYear?: number;
/** Format: int32 */
deathYear?: number;
/** Format: int32 */
generation?: number;
familyMember: boolean;
sourceRef?: string;
provisional: boolean;
@@ -2285,6 +2289,8 @@ export interface components {
birthYear?: number;
/** Format: int32 */
deathYear?: number;
/** Format: int32 */
generation?: number;
familyMember: boolean;
};
InferredRelationshipDTO: {

View File

@@ -11,6 +11,7 @@ export type PersonFormData = {
alias?: string | null;
birthYear?: number | null;
deathYear?: number | null;
generation?: number | null;
notes?: string | null;
};