This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/app/types/index.js

53 lines
804 B
JavaScript
Raw Normal View History

2017-05-04 05:49:50 +00:00
// @flow
export type User = {
avatarUrl: string,
id: string,
name: string,
email: string,
username: string,
};
2017-05-12 00:23:56 +00:00
export type Team = {
id: string,
name: string,
avatarUrl: string,
2017-05-12 00:23:56 +00:00
};
export type NavigationNode = {
id: string,
title: string,
url: string,
children: Array<NavigationNode>,
};
export type Document = {
collaborators: Array<User>,
2017-05-23 07:45:15 +00:00
collection: Object,
createdAt: string,
createdBy: User,
html: string,
id: string,
private: boolean,
starred: boolean,
views: number,
team: string,
text: string,
title: string,
updatedAt: string,
updatedBy: User,
url: string,
views: number,
};
2017-05-04 05:49:50 +00:00
export type Pagination = {
limit: number,
nextPath: string,
offset: number,
};
2017-05-12 00:23:56 +00:00
export type ApiKey = {
id: string,
name: ?string,
secret: string,
};