mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
Refactor trailers
Trailes are no persons, they have a person.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
import { Collection, Links } from "./hal";
|
||||
import { Tag } from "./Tags";
|
||||
import { Branch } from "./Branches";
|
||||
import { Person } from "@scm-manager/ui-components/src/avatar/Avatar";
|
||||
|
||||
export type Changeset = Collection & {
|
||||
id: string;
|
||||
@@ -34,7 +35,7 @@ export type Changeset = Collection & {
|
||||
mail?: string;
|
||||
};
|
||||
description: string;
|
||||
trailerPersons: TrailerPerson[];
|
||||
trailers: Trailer[];
|
||||
_links: Links;
|
||||
_embedded: {
|
||||
tags?: Tag[];
|
||||
@@ -43,9 +44,8 @@ export type Changeset = Collection & {
|
||||
};
|
||||
};
|
||||
|
||||
export type TrailerPerson = {
|
||||
name: string;
|
||||
mail: string;
|
||||
export type Trailer = {
|
||||
person: Person;
|
||||
trailerType: string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user