5dd7eba911
Unify application display page and isntalled page --------- Co-authored-by: Charles Bochet <charles@twenty.com>
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
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
|
|
version
|
|
universalIdentifier
|
|
applicationRegistrationId
|
|
applicationRegistration {
|
|
id
|
|
latestAvailableVersion
|
|
sourceType
|
|
logoUrl
|
|
}
|
|
canBeUninstalled
|
|
defaultRoleId
|
|
settingsCustomTabFrontComponentId
|
|
availablePackages
|
|
applicationVariables {
|
|
id
|
|
key
|
|
value
|
|
description
|
|
isSecret
|
|
}
|
|
agents {
|
|
...AgentFields
|
|
}
|
|
frontComponents {
|
|
id
|
|
name
|
|
description
|
|
applicationId
|
|
}
|
|
objects {
|
|
...ObjectMetadataFields
|
|
}
|
|
logicFunctions {
|
|
...LogicFunctionFields
|
|
}
|
|
}
|
|
`;
|