move Person type to ui-types

This commit is contained in:
Sebastian Sdorra
2020-06-10 10:02:49 +02:00
parent 324c23e509
commit 53fc01b0ba
5 changed files with 20 additions and 37 deletions

View File

@@ -25,15 +25,16 @@
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 Person = {
name: string;
mail?: string;
};
export type Changeset = Collection & {
id: string;
date: Date;
author: {
name: string;
mail?: string;
};
author: Person;
description: string;
trailers: Trailer[];
_links: Links;

View File

@@ -29,16 +29,12 @@ export { Me } from "./Me";
export { DisplayedUser, User } from "./User";
export { Group, Member } from "./Group";
export {
Repository,
RepositoryCollection,
RepositoryGroup
} from "./Repositories";
export { Repository, RepositoryCollection, RepositoryGroup } from "./Repositories";
export { RepositoryType, RepositoryTypeCollection } from "./RepositoryTypes";
export { Branch, BranchRequest } from "./Branches";
export { Changeset } from "./Changesets";
export { Changeset, Person, Trailer, ParentChangeset } from "./Changesets";
export { Tag } from "./Tags";
@@ -46,22 +42,13 @@ export { Config } from "./Config";
export { IndexResources } from "./IndexResources";
export {
Permission,
PermissionCreateEntry,
PermissionCollection
} from "./RepositoryPermissions";
export { Permission, PermissionCreateEntry, PermissionCollection } from "./RepositoryPermissions";
export { SubRepository, File } from "./Sources";
export { SelectValue, AutocompleteObject } from "./Autocomplete";
export {
Plugin,
PluginCollection,
PluginGroup,
PendingPlugins
} from "./Plugin";
export { Plugin, PluginCollection, PluginGroup, PendingPlugins } from "./Plugin";
export { RepositoryRole } from "./RepositoryRole";