mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
12 lines
747 B
TypeScript
12 lines
747 B
TypeScript
export const replicationKeys = {
|
|
sources: (projectRef: string | undefined) => ['projects', projectRef, 'sources'] as const,
|
|
sinks: (projectRef: string | undefined) => ['projects', projectRef, 'sinks'] as const,
|
|
publications: (projectRef: string | undefined, source_id: number) =>
|
|
['projects', projectRef, 'sources', source_id, 'publications'] as const,
|
|
tables: (projectRef: string | undefined, source_id: number) =>
|
|
['projects', projectRef, 'sources', source_id, 'tables'] as const,
|
|
pipelines: (projectRef: string | undefined) => ['projects', projectRef, 'pipelines'] as const,
|
|
pipelinesStatus: (projectRef: string | undefined, pipelineId: number) =>
|
|
['projects', projectRef, 'pipelines', pipelineId, 'status'] as const,
|
|
}
|