Skip to content

The open alternative to Salesforce, designed for AI.

924 B
Raw Blame
import { gql } from '@apollo/client';

import { APPLICATION_REGISTRATION_FRAGMENT } from '@/settings/application-registrations/graphql/fragments/applicationRegistrationFragment';

export const FIND_ALL_APPLICATION_REGISTRATIONS = gql`
  query FindAllApplicationRegistrations(
    $limit: Int
    $offset: Int
    $searchTerm: String
    $isPreInstalledOnly: Boolean
    $sourceTypes: [ApplicationRegistrationSourceType!]
    $isListed: Boolean
    $isConfigured: Boolean
  ) {
    findAllApplicationRegistrations(
      limit: $limit
      offset: $offset
      searchTerm: $searchTerm
      isPreInstalledOnly: $isPreInstalledOnly
      sourceTypes: $sourceTypes
      isListed: $isListed
      isConfigured: $isConfigured
    ) {
      registrations {
        ...ApplicationRegistrationFragment
        author
        installCount
      }
      totalCount
      hasMore
    }
  }
  ${APPLICATION_REGISTRATION_FRAGMENT}
`;