11 lines
557 B
TypeScript
11 lines
557 B
TypeScript
import type {goodsType} from '@/types/business.type.ts'
|
|
|
|
export const queryKeys = {
|
|
authBootstrap: (username: string) => ['auth-bootstrap', username] as const,
|
|
goodsCatalog: (types?: readonly goodsType[]) => ['goods-catalog', ...(types ?? ['all'])] as const,
|
|
assets: (sessionId: string) => ['assets', sessionId] as const,
|
|
addressList: (sessionId: string) => ['address-list', sessionId] as const,
|
|
orders: (sessionId: string) => ['orders', sessionId] as const,
|
|
pointsLogs: (sessionId: string) => ['points-logs', sessionId] as const,
|
|
}
|