Files
supabase/apps/studio/data/storage/keys.ts
T
2209d72990 Update UI to de-couple ETL replication context from Analytics Buckets (#40645)
* Update UI to de-couple ETL replication context from Analytics Buckets

* Nit

* Nit

* nit

* Address all feedback

* Address feedback

* Add enabled feature check for analytics and vector buckets

* FIXX

* Update apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-11-21 16:28:31 +08:00

54 lines
1.6 KiB
TypeScript

export const storageKeys = {
buckets: (projectRef: string | undefined) => ['projects', projectRef, 'buckets'] as const,
analyticsBuckets: (projectRef: string | undefined) =>
['projects', projectRef, 'analytics-buckets'] as const,
vectorBuckets: (projectRef: string | undefined) =>
['projects', projectRef, 'vector-buckets'] as const,
vectorBucket: (projectRef: string | undefined, vectorbucketName: string | undefined) =>
['projects', projectRef, 'vector-bucket', vectorbucketName] as const,
vectorBucketsIndexes: (projectRef: string | undefined, vectorBucketName: string | undefined) =>
['projects', projectRef, 'vector-buckets', vectorBucketName, 'indexes'] as const,
archive: (projectRef: string | undefined) => ['projects', projectRef, 'archive'] as const,
icebergNamespaces: ({
projectRef,
catalog,
warehouse,
}: {
projectRef?: string
catalog: string
warehouse: string
}) => [projectRef, 'catalog', catalog, 'warehouse', warehouse, 'namespaces'] as const,
icebergNamespace: ({
projectRef,
catalog,
warehouse,
namespace,
}: {
projectRef?: string
catalog: string
warehouse: string
namespace: string
}) => [projectRef, 'catalog', catalog, 'warehouse', warehouse, 'namespaces', namespace] as const,
icebergNamespaceTables: ({
projectRef,
catalog,
warehouse,
namespace,
}: {
projectRef?: string
catalog: string
warehouse: string
namespace: string
}) =>
[
projectRef,
'catalog',
catalog,
'warehouse',
warehouse,
'namespaces',
namespace,
'tables',
] as const,
}