All files / src/pages/flowsheet-page/economics/cost-items-panel/model capitalLineTypes.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48          76x 76x 76x   76x                                                                            
import type {
  CostableItemRead,
  SimulationObjectRead,
} from "@/api/apiStore.gen";
 
export const NONE_SELECT_VALUE = "__none__";
export const CREATE_CURVE_SELECT_VALUE = "__create_curve__";
export const FOCUSED_CONTEXT_SCROLL_CLASS = "scroll-mt-28";
 
export const SUPPORTED_UNIT_COST_OBJECT_TYPES = new Set([
  "Tank",
  "compressor",
  "cooler",
  "crystallizer",
  "compoundSeparator",
  "heatExchanger",
  "heat_exchanger_1d",
  "plate_heat_exchanger",
  "heat_exchanger_ntu",
  "heat_exchanger_lc",
  "heater",
  "mixer",
  "phaseSeparator",
  "pump",
  "reverse_osmosis_0d",
]);
 
export type UnitCostRow = {
  unit: SimulationObjectRead;
  costableItem?: CostableItemRead;
};
 
export type SaveState = {
  kind: "idle" | "saving" | "saved" | "error";
  message?: string;
};
 
export type FieldMessages = Record<string, string>;
export type ResourceFieldMessages = Record<string, FieldMessages>;
export type ResourceSaveStates = Record<string, SaveState>;
 
export type CapitalWarningGroups = {
  costCurve: string[];
  costBasis: string[];
  sizing: string[];
  general: string[];
};