2017-07-07 03:59:45 +00:00
|
|
|
// @flow
|
2021-09-11 05:46:57 +00:00
|
|
|
import env from "../env";
|
2020-06-20 20:59:15 +00:00
|
|
|
import { Team } from "../models";
|
2017-07-07 03:59:45 +00:00
|
|
|
|
2019-04-18 02:11:23 +00:00
|
|
|
export default function present(team: Team) {
|
2017-06-26 00:21:33 +00:00
|
|
|
return {
|
|
|
|
id: team.id,
|
|
|
|
name: team.name,
|
2018-11-12 05:17:03 +00:00
|
|
|
avatarUrl: team.logoUrl,
|
2018-08-19 23:06:39 +00:00
|
|
|
sharing: team.sharing,
|
2021-09-11 05:46:57 +00:00
|
|
|
collaborativeEditing: team.collaborativeEditing && env.COLLABORATION_URL,
|
2018-12-15 22:06:29 +00:00
|
|
|
documentEmbeds: team.documentEmbeds,
|
2019-12-16 02:46:08 +00:00
|
|
|
guestSignin: team.guestSignin,
|
2018-11-04 03:27:57 +00:00
|
|
|
subdomain: team.subdomain,
|
2020-11-05 03:54:04 +00:00
|
|
|
domain: team.domain,
|
2018-11-04 03:27:57 +00:00
|
|
|
url: team.url,
|
2017-06-26 00:21:33 +00:00
|
|
|
};
|
|
|
|
}
|