Skip to content

The open alternative to Salesforce, designed for AI.

1.8 KB
Raw Blame
import { AGENT_FRAGMENT } from '@/ai/graphql/fragments/agentFragment';
import { OBJECT_METADATA_FRAGMENT } from '@/object-metadata/graphql/fragment';
import { LOGIC_FUNCTION_FRAGMENT } from '@/logic-functions/graphql/fragments/logicFunctionFragment';
import { gql } from '@apollo/client';

export const APPLICATION_FRAGMENT = gql`
  ${AGENT_FRAGMENT}
  ${LOGIC_FUNCTION_FRAGMENT}
  ${OBJECT_METADATA_FRAGMENT}
  fragment ApplicationFields on Application {
    id
    name
    description
    logoUrl
    version
    universalIdentifier
    applicationRegistrationId
    applicationRegistration {
      id
      latestAvailableVersion
      sourceType
      logoUrl
    }
    canBeUninstalled
    autoUpgrade
    createdAt
    defaultRoleId
    settingsCustomTabFrontComponentId
    healthCheckLogicFunctionId
    availablePackages
    applicationVariables {
      id
      key
      value
      description
      label
      isSecret
      isDeprecated
      isRequired
      type
      options
      scope
    }
    agents {
      ...AgentFields
    }
    frontComponents {
      id
      name
      description
      applicationId
      componentName
      builtComponentChecksum
      universalIdentifier
      isHeadless
      usesSdkClient
      frontComponentSharedDependenciesChecksum
      createdAt
      updatedAt
    }
    commandMenuItems {
      id
      label
      shortLabel
      icon
      isPinned
      availabilityType
      conditionalAvailabilityExpression
      frontComponentId
      universalIdentifier
      applicationId
      createdAt
      updatedAt
    }
    settingsMenuItems {
      id
      universalIdentifier
      applicationId
      frontComponentId
      title
      icon
      position
      scope
      slug
    }
    objects {
      ...ObjectMetadataFields
    }
    logicFunctions {
      ...LogicFunctionFields
    }
  }
`;