mirror of https://github.com/portainer/portainer
11 lines
397 B
TypeScript
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,
|
||
|
};
|