mirror of
https://github.com/supabase/supabase.git
synced 2026-07-05 05:14:21 +08:00
* Disable restores if project paused for longer than 30 days * Update to 90 days * Update copy * PRetty * Update based on API changfes * Prettier * Update * Minor copy fix * simplify wording --------- Co-authored-by: Alaister Young <a@alaisteryoung.com>
18 lines
1004 B
TypeScript
18 lines
1004 B
TypeScript
export const projectKeys = {
|
|
list: () => ['all-projects'] as const,
|
|
status: (projectRef: string | undefined) => ['project', projectRef, 'status'] as const,
|
|
types: (projectRef: string | undefined) => ['project', projectRef, 'types'] as const,
|
|
detail: (projectRef: string | undefined) => ['project', projectRef, 'detail'] as const,
|
|
readonlyStatusList: () => ['projects', 'readonly-statuses'] as const,
|
|
readonlyStatus: (projectRef: string | undefined) =>
|
|
['projects', projectRef, 'readonly-status'] as const,
|
|
projectTransfer: (projectRef: string | undefined, targetOrganizationSlug: string | undefined) =>
|
|
['projects', 'transfer', projectRef, targetOrganizationSlug] as const,
|
|
projectTransferPreview: (
|
|
projectRef: string | undefined,
|
|
targetOrganizationSlug: string | undefined
|
|
) => ['projects', 'transfer', projectRef, targetOrganizationSlug, 'preview'] as const,
|
|
pauseStatus: (projectRef: string | undefined) =>
|
|
['projects', projectRef, 'pause-status'] as const,
|
|
}
|