mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
* Use DataGrid for cron jobs interface instead of cards * Deprecate CronJobCard and database-cron-jobs-run-query.ts * Add tooltip for editing unnamed job * Implement infinite scrolling to cron jobs + server side searching * Deprecate database-cron-jobs-query, and add a singular database-cron-job-query * Add hover card for cron job table cell command
27 lines
991 B
TypeScript
27 lines
991 B
TypeScript
export const databaseCronJobsKeys = {
|
|
create: () => ['cron-jobs', 'create'] as const,
|
|
delete: () => ['cron-jobs', 'delete'] as const,
|
|
alter: () => ['cronjobs', 'alter'] as const,
|
|
job: (projectRef: string | undefined, identifier: number | string | undefined) =>
|
|
['projects', projectRef, 'cron-jobs', identifier] as const,
|
|
listInfinite: (projectRef: string | undefined, searchTerm: string | undefined) =>
|
|
['projects', projectRef, 'cron-jobs', { searchTerm }] as const,
|
|
count: (projectRef: string | undefined) =>
|
|
['projects', projectRef, 'cron-jobs', 'count'] as const,
|
|
run: (projectRef: string | undefined, jobId: number) => [
|
|
'projects',
|
|
projectRef,
|
|
'cron-jobs',
|
|
jobId,
|
|
'run',
|
|
],
|
|
runsInfinite: (projectRef: string | undefined, jobId: number, options?: object) => [
|
|
'projects',
|
|
projectRef,
|
|
'cron-jobs',
|
|
jobId,
|
|
options,
|
|
],
|
|
timezone: (projectRef: string | undefined) => ['database-cron-timezone', projectRef] as const,
|
|
}
|