#include <maps/wikimap/mapspro/services/tasks-ng/lib/common.h>

#include <maps/libs/enum_io/include/enum_io.h>

namespace maps {
namespace wiki {
namespace tasks_ng {

namespace {

enum_io::Representations<ServiceTaskStatus> TASK_STATUS_REPRESENTATION{
    {ServiceTaskStatus::Pending, "pending"},
    {ServiceTaskStatus::Started, "started"},
    {ServiceTaskStatus::Revoked, "revoked"},
    {ServiceTaskStatus::Frozen, "frozen"},
    {ServiceTaskStatus::Failure, "failure"},
    {ServiceTaskStatus::Success, "success"},
};

} // namespace

DEFINE_ENUM_IO(ServiceTaskStatus, TASK_STATUS_REPRESENTATION);

} // namespace tasks_ng
} // namespace wiki
} // namespace maps
