mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 00:11:13 -05:00
feat: Implement Phase 4 cleanup and polish
This commit is contained in:
@@ -62,8 +62,8 @@ export const queryKeys = {
|
||||
|
||||
// Photos queries
|
||||
photos: {
|
||||
entity: (entityType: string, entityId: string) =>
|
||||
['photos', entityType, entityId] as const,
|
||||
entity: (entityType: string, entityId: string, sortBy?: string) =>
|
||||
['photos', entityType, entityId, sortBy] as const,
|
||||
count: (entityType: string, entityId: string) =>
|
||||
['photos', 'count', entityType, entityId] as const,
|
||||
},
|
||||
@@ -77,4 +77,30 @@ export const queryKeys = {
|
||||
lists: {
|
||||
items: (listId: string) => ['list-items', listId] as const,
|
||||
},
|
||||
|
||||
// Company queries
|
||||
companies: {
|
||||
all: (type: string) => ['companies', 'all', type] as const,
|
||||
detail: (slug: string, type: string) => ['companies', 'detail', slug, type] as const,
|
||||
statistics: (id: string, type: string) => ['companies', 'statistics', id, type] as const,
|
||||
parks: (id: string, type: string, limit: number) => ['companies', 'parks', id, type, limit] as const,
|
||||
},
|
||||
|
||||
// Profile queries
|
||||
profile: {
|
||||
detail: (userId: string) => ['profile', userId] as const,
|
||||
activity: (userId: string, isOwn: boolean, isMod: boolean) =>
|
||||
['profile', 'activity', userId, isOwn, isMod] as const,
|
||||
stats: (userId: string) => ['profile', 'stats', userId] as const,
|
||||
},
|
||||
|
||||
// Ride Models queries
|
||||
rideModels: {
|
||||
all: (manufacturerId: string) => ['ride-models', 'all', manufacturerId] as const,
|
||||
detail: (manufacturerSlug: string, modelSlug: string) =>
|
||||
['ride-models', 'detail', manufacturerSlug, modelSlug] as const,
|
||||
rides: (modelId: string, limit?: number) =>
|
||||
['ride-models', 'rides', modelId, limit] as const,
|
||||
statistics: (modelId: string) => ['ride-models', 'statistics', modelId] as const,
|
||||
},
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user