Refactor trailers

Trailes are no persons, they have a person.
This commit is contained in:
René Pfeuffer
2020-06-02 16:41:59 +02:00
parent 76f2722ff4
commit ad864787a7
10 changed files with 43 additions and 45 deletions

View File

@@ -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;
};