import { INotification } from './models'; import { ISubscription } from './models/subscription.interface'; import { AbstractNotificationBuilder, SubscriptionsBuilder } from './builders'; export interface IApiProxyArgs { correlationId?: string; } export interface IGetNotificationsArgs { correlationId?: string; topic?: string; receiverId?: string; } export interface IRemoveNotificationsArgs { correlationId?: string; topic?: string; receiverId?: string; companyId?: string; notificationId?: string; } export interface IRemoveSubscriptionsArgs { correlationId?: string; topic?: string; receiverId?: string; companyId?: string; subscriptionId?: string; } export interface ILaqusNotificationsService { ackNotification(notificationId: string, receiverId: string, correlationId?: string): Promise; sendNotification(builder: AbstractNotificationBuilder, correlationId?: string): Promise; getNotAckedNotifications(args: IGetNotificationsArgs): Promise; getNotifications(args: IGetNotificationsArgs): Promise; subscribeToTopic(builder: SubscriptionsBuilder, correlationId?: string): Promise; sendNotificationAndSubscribe(notificationBuilder: AbstractNotificationBuilder, subscriptionBuilder: SubscriptionsBuilder, correlationId?: string): Promise; removeNotification(notificationId: string, args?: IRemoveNotificationsArgs): Promise; removeSubscription(args: IRemoveSubscriptionsArgs): Promise; }