diff --git a/types/database/models/servers/channel.d.ts b/types/database/models/servers/channel.d.ts index 93f666c9d..898bc2cff 100644 --- a/types/database/models/servers/channel.d.ts +++ b/types/database/models/servers/channel.d.ts @@ -1,7 +1,7 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -import {Relation} from '@nozbe/watermelondb'; +import {Query, Relation} from '@nozbe/watermelondb'; import Model, {Associations} from '@nozbe/watermelondb/Model'; /** @@ -42,19 +42,19 @@ export default class ChannelModel extends Model { type: string; /** members : Users belonging to this channel */ - members: ChannelMembershipModel[]; + members: Query; /** drafts : All drafts for this channel */ - drafts: DraftModel[]; + drafts: Query; /** groupsInChannel : Every group contained in this channel */ - groupsInChannel: GroupsInChannelModel[]; + groupsInChannel: Query; /** posts : All posts made in the channel */ - posts: PostModel[]; + posts: Query; /** postsInChannel : a section of the posts for that channel bounded by a range */ - postsInChannel: PostsInChannelModel[]; + postsInChannel: Query; /** team : The TEAM to which this CHANNEL belongs */ team: Relation; diff --git a/types/database/models/servers/group.d.ts b/types/database/models/servers/group.d.ts index 211722a31..c7c0b18ff 100644 --- a/types/database/models/servers/group.d.ts +++ b/types/database/models/servers/group.d.ts @@ -22,11 +22,11 @@ export default class GroupModel extends Model { name: string; /** groupsInChannel : All the related children records from GroupsInChannel */ - groupsInChannel: GroupsInChannelModel[]; + groupsInChannel: Query; /** groupsInTeam : All the related children records from GroupsInTeam */ - groupsInTeam: GroupsInTeamModel[]; + groupsInTeam: Query; /** groupMemberships : All the related children records from GroupMembership */ - groupMemberships: GroupMembershipModel[]; + groupMemberships: Query; } diff --git a/types/database/models/servers/post.d.ts b/types/database/models/servers/post.d.ts index 56d38bea6..a526f508d 100644 --- a/types/database/models/servers/post.d.ts +++ b/types/database/models/servers/post.d.ts @@ -1,7 +1,7 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -import {Relation} from '@nozbe/watermelondb'; +import {Query, Relation} from '@nozbe/watermelondb'; import Model, {Associations} from '@nozbe/watermelondb/Model'; /** @@ -57,19 +57,19 @@ export default class PostModel extends Model { props: object; /** drafts : Every drafts associated with this Post */ - drafts: DraftModel; + drafts: Query; /** files: All the files associated with this Post */ - files: FileModel[]; + files: Query; /** postsInThread: Every posts associated to a thread */ - postsInThread: PostInThreadModel[]; + postsInThread: Query; /** metadata: All the extra data associated with this Post */ metadata: Relation; /** reactions: All the reactions associated with this Post */ - reactions: ReactionModel[]; + reactions: Query; /** author: The author of this Post */ author: Relation; diff --git a/types/database/models/servers/user.d.ts b/types/database/models/servers/user.d.ts index d69775354..8c2f489b2 100644 --- a/types/database/models/servers/user.d.ts +++ b/types/database/models/servers/user.d.ts @@ -71,23 +71,23 @@ export default class UserModel extends Model { timezone: UserTimezone | null; /** channelsCreated : All the channels that this user created */ - channelsCreated: ChannelModel[]; + channelsCreated: Query; /** channels : All the channels that this user is part of */ - channels: ChannelMembershipModel[]; + channels: Query; /** groups : All the groups that this user is part of */ - groups: GroupMembershipModel[]; + groups: Query; /** posts : All the posts that this user has written*/ - posts: PostModel[]; + posts: Query; /** preferences : All user preferences */ - preferences: PreferenceModel[]; + preferences: Query; /** reactions : All the reactions to posts that this user had */ - reactions: ReactionModel[]; + reactions: Query; /** teams : All the team that this user is part of */ - teams: TeamMembershipModel[]; + teams: Query; }