chore: added topics for user history subscriptions

This commit is contained in:
ankitsridhar16
2023-01-23 15:04:05 +05:30
parent 863e1ee113
commit 74e4a77ce6

View File

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