portainer/app/react/edge/edge-stacks/queries/query-keys.ts

11 lines
397 B
TypeScript

import { EnvironmentId } from '@/react/portainer/environments/types';
import { EdgeStack } from '../types';
export const queryKeys = {
base: () => ['edge-stacks'] as const,
item: (id: EdgeStack['Id']) => [...queryKeys.base(), id] as const,
logsStatus: (edgeStackId: EdgeStack['Id'], environmentId: EnvironmentId) =>
[...queryKeys.item(edgeStackId), 'logs', environmentId] as const,
};