// @flow

import type { Links } from "./hal";

// TODO ?? check ?? links
export type SubRepository = {
  repositoryUrl: string,
  browserUrl: string,
  revision: string
};

export type File = {
  name: string,
  path: string,
  directory: boolean,
  description?: string,
  revision: string,
  length: number,
  lastModified?: string,
  subRepository?: SubRepository, // TODO
  _links: Links,
  _embedded: {
    children: ?File[]
  }
};
