{-# OPTIONS_GHC -fno-warn-orphans #-}

module Hasura.Backends.DataConnector.Adapter.API () where

--------------------------------------------------------------------------------

import Hasura.Prelude
import Hasura.RQL.Types.BackendType (BackendType (DataConnector))
import Hasura.Server.API.Backend (BackendAPI (..), functionCommands, functionPermissionsCommands, logicalModelsCommands, relationshipCommands, remoteRelationshipCommands, sourceCommands, tableCommands, tablePermissionsCommands, trackableCommands)

--------------------------------------------------------------------------------

instance BackendAPI 'DataConnector where
  metadataV1CommandParsers :: [CommandParser 'DataConnector]
metadataV1CommandParsers =
    [[CommandParser 'DataConnector]] -> [CommandParser 'DataConnector]
forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat
      [ forall (b :: BackendType). Backend b => [CommandParser b]
sourceCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
tableCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
tablePermissionsCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
trackableCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
functionCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
functionPermissionsCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
relationshipCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
remoteRelationshipCommands @'DataConnector,
        forall (b :: BackendType). Backend b => [CommandParser b]
logicalModelsCommands @'DataConnector
      ]