_ENV = "products"
_ENV_PR = "products-pr"


def _set_env(env: str):
    _ENV = env
    _ENV_PR = {env}


TOKEN_BASE_URL = "https://api.passiolife.com/v2/token-cache/napi/"
SEARCH_URL = f"https://api.passiolife.com/v2/{_ENV}/napi/food/search/"
PRODUCTS_URL = f"https://api.passiolife.com/v2/{_ENV}/napi/food/"
BASE64_IMAGE = "data:image/jpeg;base64,"
PACKAGED_PRODUCT_URL = (
    f"https://api.passiolife.com/v2/{_ENV_PR}/napi/tools/vision/extractPackagedProduct"
)
EXTRACT_INGREDIENTS_URL = (
    f"https://api.passiolife.com/v2/{_ENV_PR}/napi/tools/extractIngredients"
)
