#pragma once

#include "mission/mission_store.hpp"

#include <nlohmann/json.hpp>

#include <optional>
#include <string>

namespace lm {

class MissionEnqueue
{
public:
  static nlohmann::json normalizeParameters(const nlohmann::json& parameters);
  static bool buildPayload(const MissionStore& store,
                           const nlohmann::json& request,
                           nlohmann::json& payload,
                           std::string& err);
};

}  // namespace lm
