import { UploadedFile } from "craftable-pro/types";
import { PageProps } from "craftable-pro/types/page";

export type ExtendedPageProps = PageProps & {
  auth: {
    roles: string[];
    modules: string[];
  };
  csrf_token: string;
  media: {
    conversions_folder: string;
    defaul_format: string;
    max_file_size: number;
    accepts_extensions_xlsx: string;
    accepts_mime_types_xlsx: string;
    accepts_extensions_zip: string;
    accepts_extensions_attachments: string;
    accepts_mime_types_attachments: string;
  },
  google_maps_api_key: string;
};

export const ProjectStatus = {
  COMPLETED: 'completed',
  NEW: 'new',
  CREATING: 'creating',
  BATCH_PROCESSING: 'batch_processing',
  UPDATING: 'updating',
  FINISHED: 'finished',
}

export const BatchStatus = {
  VALIDATING: 'validating',
  VALIDATION_FAILED: 'validation_failed',
  PROCESSING: 'processing',
  SUCCESS: 'success',
  FAILED: 'failed',
}

export const ProjectStep = {
  STEP1: 1,
  STEP2: 2,
  STEP3: 3,
  STEP4: 4,
  STEP5: 5,
  STEP6: 6,
  STEP7: 7,
}

export const ProjectStepExtended = {
  STEP1: 0,
  STEP2: 1,
  STEP3: 2,
  STEP4: 3,
  STEP5: 4,
  STEP6: 5,
  STEP7: 6,
}

export const Role = {
  ADMINISTRATOR: 'Administrator',
  SYSTEM: 'System',
  TEAM_LEADER: 'Team Leader',
  USER: 'User',
}

export const Module = {
  PROJECTS: 'projects',
  BATCHES: 'batches',
}

export const BatchInputType = {
  FILE: 'file',
  MAP: 'map',
}

export const Color = {
  STROKE_COLOR: "#000000",
  STROKE_COLOR_HOVER: "#000000",
  FILL_COLOR_HOVER: "#000000",
  SVG_COLOR: "#fde047",
  SVG_COLOR_HOVER: "#16a34a",
  RED: "#ff0000",
  GREEN: "#00ff00",
  GRAY: "#374151",
}
