index.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { IPreferenceChannels, NotificationTemplateCustomData } from '@novu/shared';
  2. export interface IUnseenCountQuery {
  3. feedIdentifier?: string | string[];
  4. seen?: boolean;
  5. limit?: number;
  6. }
  7. export interface IUnreadCountQuery {
  8. feedIdentifier?: string | string[];
  9. read?: boolean;
  10. limit?: number;
  11. }
  12. export interface IStoreQuery {
  13. feedIdentifier?: string | string[];
  14. seen?: boolean;
  15. read?: boolean;
  16. limit?: number;
  17. payload?: Record<string, unknown>;
  18. }
  19. export interface ITabCountQuery {
  20. feedIdentifier?: string | string[];
  21. seen?: boolean;
  22. read?: boolean;
  23. limit?: number;
  24. }
  25. export interface IUserPreferenceSettings {
  26. template: {
  27. _id: string;
  28. name: string;
  29. critical: boolean;
  30. tags?: string[];
  31. data?: NotificationTemplateCustomData;
  32. };
  33. preference: PreferenceSettingsType;
  34. }
  35. export interface IUserGlobalPreferenceSettings {
  36. preference: PreferenceSettingsType;
  37. }
  38. export type PreferenceSettingsType = {
  39. enabled: boolean;
  40. channels: IPreferenceChannels;
  41. };
  42. export { ApiService } from './api/api.service';
  43. //# sourceMappingURL=index.d.ts.map