Added types, components and logic for changesets

This commit is contained in:
Philipp Czora
2018-09-11 17:20:30 +02:00
parent 115fa4fb52
commit 9e489cfd1d
9 changed files with 224 additions and 33 deletions

View File

@@ -0,0 +1,18 @@
//@flow
import type { Links } from "./hal";
import type { Tag } from "./Tags";
export type Changeset = {
id: string,
date: Date,
author: {
name: string,
mail: string
},
description: string
_links: Links,
_embedded: {
tags: Tag[]
branches: any, //todo: Add correct type
parents: any //todo: Add correct type
};
}

View File

@@ -0,0 +1,8 @@
//@flow
import type { Links } from "./hal";
export type Tag = {
name: string,
revision: string,
_links: Links
}

View File

@@ -9,4 +9,8 @@ export type { Group, Member } from "./Group";
export type { Repository, RepositoryCollection, RepositoryGroup } from "./Repositories";
export type { RepositoryType, RepositoryTypeCollection } from "./RepositoryTypes";
export type { Changeset } from "./Changesets";
export type { Tag } from "./Tags"
export type { Config } from "./Config";