feat: team module added

This commit is contained in:
Mir Arif Hasan
2023-02-07 21:15:54 +06:00
parent 420359066e
commit 9bee62ada9
12 changed files with 1937 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import { User } from 'src/user/user.model';
import { UserSettings } from 'src/user-settings/user-settings.model';
import { UserEnvironment } from '../user-environment/user-environments.model';
import { UserHistory } from '../user-history/user-history.model';
import { TeamMember } from 'src/team/team.model';
// A custom message type that defines the topic and the corresponding payload.
// For every module that publishes a subscription add its type def and the possible subscription type.
@@ -15,5 +16,8 @@ export type TopicDef = {
[
topic: `user_history/${string}/${'created' | 'updated' | 'deleted'}`
]: UserHistory;
[topic: `team/${string}/member_removed`]: string;
[topic: `team/${string}/member_added`]: TeamMember;
[topic: `team/${string}/member_updated`]: TeamMember;
[topic: `user_history/${string}/deleted_many`]: number;
};