Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { type Period } from '@amalia/payout-definition/periods/types'; import { type Plan, type Rule, type RuleConfiguration } from '@amalia/payout-definition/plans/types'; export const challengesQueryKeys = { all: () => ['challenges'] as const, detailsByRulePeriod: (ruleId: Rule['id'], periodId: Period['id']) => [...challengesQueryKeys.all(), 'details', ruleId, periodId] as const, paymentsOfChallenge: (ruleId: Rule['id'], periodId: Period['id']) => [...challengesQueryKeys.all(), 'payments', ruleId, periodId] as const, usersToNotify: (planId: Plan['id'], challengeStartDate: RuleConfiguration['challengeStartDate']) => [...challengesQueryKeys.all(), 'users-to-notify', planId, challengeStartDate] as const, launchNotificationStatus: (ruleId: string) => [...challengesQueryKeys.all(), 'launch-notification-status', ruleId] as const, } as const; export const challengesMutationKeys = { all: () => ['challenges'] as const, sendLaunchNotification: () => [...challengesMutationKeys.all(), 'send-launch-notification'] as const, } as const; |