(ns metabase.eid-translation)

Possible statuses from an entity-id -> id translation: If the translation from entity-id -> id is successful, the status is :ok. If the id is not found, the status is :not-found. If the format of the entity-id is invalid, the status is :invalid-format.

(def statuses
  [:ok :not-found :invalid-format])

Malli enum for possible statuses for entity_id -> id translations.

(def Status
  (into [:enum] statuses))

The empty counter for tracking the number of entity_id -> id translations.

(def default-counter
  (zipmap statuses (repeat 0)))