# Helpdesk


# Helpdesk
GITLAB_GROUP_TYPES: dict[int, str] = {
    519: "helpdesk",
    520: "maintenance",
    5: "project",
}


# Related to the declared ports in the GitLab OAuth2 Application settings
OAUTH_DECLARED_REDIRECT_PORTS: list[int] = [
    7070,
    5000,
]  # priority order

# Showcase
GITLAB_PLUGINS_REMOTE: str = (
    "https://oslandia.gitlab.io/qgis/oslandia/gitlab_plugins.json"
)
PRIVATE_PROJECTS_REMOTE: str = (
    "https://oslandia.gitlab.io/qgis/oslandia/private_plugins.json"
)
PUBLIC_PROJECTS_REMOTE: str = (
    "https://oslandia.gitlab.io/qgis/oslandia/public_plugins.json"
)
VALID_EXTENSIONS = (".png", ".svg", ".jpeg", ".jpg", ".webp")

# Newsfeed
NEWSFEED_URL_FR = "https://oslandia.com/feed/"
NEWSFEED_URL_US = "https://oslandia.com/en/feed/"

# Tracking configuration
UTM_CAMPAIGN = "qgis_{qgisversion}_plugin_{pluginversion}"
UTM_CONTENT_HELPDESK = "helpdesk"
UTM_CONTENT_ISSUEBROWSER = "issue-browser"
UTM_CONTENT_NEWSFEED = "news-feed"
UTM_CONTENT_PROFILE = "profile"
UTM_CONTENT_SETTINGS = "settings"
UTM_CONTENT_SHOWCASE = "showcase"
UTM_MEDIUM_DEFAULT = "user_click"
UTM_MEDIUM_BACKGROUND = "background_task"
UTM_SOURCE = "plugin_qgis_oslandia"
