Files
mattermost-mobile/types/api/groups.d.ts
Shaz MJ 4b698c7f41 [Gekidou] Saves groups + group-channel for constrained channels (#6358)
* Rebases and addresses PR feedback

* Rebased and addresses PR feedback

* Checks group constraint in action instead

* Update method docs, parallel promises

* Parallel promises, method docs

* Cleans up method docs

* Method docs cleanup

* Update app/database/operator/server_data_operator/handlers/group.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-08-01 08:02:15 +10:00

35 lines
643 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
type Group = {
id: string;
name: string;
display_name: string;
description: string;
source: string;
remote_id: string;
member_count?: number;
allow_reference: boolean;
create_at: number;
update_at: number;
delete_at: number;
};
type GroupTeam = {
id?: string;
team_id: string;
group_id: string;
}
type GroupChannel = {
id?: string;
channel_id: string;
group_id: string;
}
type GroupMembership = {
id?: string;
group_id: string;
user_id: string;
}