mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
18 lines
732 B
TypeScript
18 lines
732 B
TypeScript
import type { RepresentationMetadata } from '../../http/representation/RepresentationMetadata';
|
|
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
|
|
import { AsyncHandler } from '../../util/handlers/AsyncHandler';
|
|
import type { AS, VocabularyTerm } from '../../util/Vocabularies';
|
|
import type { NotificationChannel } from './NotificationChannel';
|
|
|
|
export interface NotificationHandlerInput {
|
|
topic: ResourceIdentifier;
|
|
channel: NotificationChannel;
|
|
activity?: VocabularyTerm<typeof AS>;
|
|
metadata?: RepresentationMetadata;
|
|
}
|
|
|
|
/**
|
|
* Makes sure an activity gets emitted to the relevant channel.
|
|
*/
|
|
export abstract class NotificationHandler extends AsyncHandler<NotificationHandlerInput> {}
|