packages feed

hercules-ci-api-0.7.0.0: src/Hercules/API/Accounts/AccountInstallationStatus.hs

{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Accounts.AccountInstallationStatus where

import Hercules.API.Accounts.Account (Account)
import Hercules.API.Prelude
import Hercules.API.SourceHostingSite.SourceHostingSite (SourceHostingSite)

data AccountInstallationStatus = AccountInstallationStatus
  { site :: SourceHostingSite,
    account :: Maybe Account,
    isProcessingInstallationWebHook :: Bool,
    secondsSinceInstallationWebHookComplete :: Maybe Int
  }
  deriving (Generic, Show, Eq, NFData, ToJSON, FromJSON, ToSchema)