chore: pulled from main

This commit is contained in:
Mir Arif Hasan
2023-01-24 15:24:11 +06:00
parent d7b02da719
commit 6627514e88
17 changed files with 1381 additions and 3 deletions

View File

@@ -1,12 +1,19 @@
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';
// 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.
export type TopicDef = {
[topic: `user/${string}/${'updated'}`]: User;
[topic: `user_settings/${string}/${'created' | 'updated'}`]: UserSettings;
[
topic: `user_environment/${string}/${'created' | 'updated' | 'deleted'}`
]: UserEnvironment;
[topic: `user/${string}/${'updated'}`]: User;
[topic: `user_environment/${string}/deleted_many`]: number;
[
topic: `user_history/${string}/${'created' | 'updated' | 'deleted'}`
]: UserHistory;
[topic: `user_history/${string}/deleted_many`]: number;
};