hunk.code_window: async function getConfigMapsForCluster(
     environmentId: EnvironmentId,
     namespaces: string[]
   ) {
     try {
       const configMaps = await Promise.all(
         namespaces.map((namespace) => getConfigMaps(environmentId, namespace))
       );
       return configMaps.flat();
     } catch (e) {
       throw new PortainerError('Unable to retrieve ConfigMaps', e);
     }
   }
   // get all configmaps for a namespace
   async function getConfigMaps(environmentId: EnvironmentId, namespace: string) {
     try {
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:   const configMaps = await Promise.all(
       namespaces.map((namespace) => getConfigMaps(environmentId, namespace))
     );
     return configMaps.flat();
  
hunk.file_path: app/react/kubernetes/configs/configmap.service.ts
hunk.type: replace
file: import { EdgeStack, StatusType } from '../../types';
  
  export type DecoratedEdgeStack = EdgeStack & {
    aggregatedStatus: Partial<Record<StatusType, number>>;
  };
  