Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

633 B
Raw Blame
import { createQueryKeys } from '@lukemorales/query-key-factory';

export const notificationKeys = createQueryKeys('notification', {
  all: null,
  user: (params: { limit?: number; done?: boolean }) => ({
    queryKey: ['user', { infinite: true, ...params }],
  }),
  entity: (params: { eventItemId: string; limit?: number }) => ({
    queryKey: [
      'entity',
      params.eventItemId,
      { infinite: true, limit: params.limit },
    ],
  }),
  entities: (params: { eventItemIds: string[]; limit?: number }) => ({
    queryKey: ['entities', { infinite: true, ...params }],
  }),
  unsubscribes: null,
  preferences: null,
});