mirror of
https://github.com/supabase/supabase.git
synced 2026-06-02 19:02:06 +08:00
* ref(etl): Rename ETL Replication to Replication and update docs * Fix * Fix * Fix * Fix * Fix
21 lines
1.4 KiB
TypeScript
21 lines
1.4 KiB
TypeScript
export const replicationKeys = {
|
|
sources: (projectRef: string | undefined) => ['projects', projectRef, 'sources'] as const,
|
|
destinations: (projectRef: string | undefined) =>
|
|
['projects', projectRef, 'destinations'] as const,
|
|
destinationById: (projectRef: string | undefined, destinationId: number | undefined) =>
|
|
['projects', projectRef, 'destinations', destinationId] as const,
|
|
publications: (projectRef: string | undefined, source_id: number | undefined) =>
|
|
['projects', projectRef, 'sources', source_id, 'publications'] as const,
|
|
tables: (projectRef: string | undefined, source_id: number | undefined) =>
|
|
['projects', projectRef, 'sources', source_id, 'tables'] as const,
|
|
pipelines: (projectRef: string | undefined) => ['projects', projectRef, 'pipelines'] as const,
|
|
pipelineById: (projectRef: string | undefined, pipelineId: number | undefined) =>
|
|
['projects', projectRef, 'pipelines', pipelineId] as const,
|
|
pipelinesStatus: (projectRef: string | undefined, pipelineId: number | undefined) =>
|
|
['projects', projectRef, 'pipelines', pipelineId, 'status'] as const,
|
|
pipelinesReplicationStatus: (projectRef: string | undefined, pipelineId: number | undefined) =>
|
|
['projects', projectRef, 'pipelines', pipelineId, 'replication-status'] as const,
|
|
pipelinesVersion: (projectRef: string | undefined, pipelineId: number | undefined) =>
|
|
['projects', projectRef, 'pipelines', pipelineId, 'version'] as const,
|
|
}
|