forked from Ivasoft/mattermost-mobile
* 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>
35 lines
643 B
TypeScript
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;
|
|
}
|