Files
twenty/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts
T

116 lines
2.6 KiB
TypeScript

import { gql } from '@apollo/client';
export const PAGE_LAYOUT_WIDGET_FRAGMENT = gql`
fragment PageLayoutWidgetFragment on PageLayoutWidget {
id
title
type
objectMetadataId
createdAt
updatedAt
deletedAt
gridPosition {
column
columnSpan
row
rowSpan
}
configuration {
... on BarChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
primaryAxisGroupByFieldMetadataId
primaryAxisGroupBySubFieldName
primaryAxisDateGranularity
primaryAxisOrderBy
secondaryAxisGroupByFieldMetadataId
secondaryAxisGroupBySubFieldName
secondaryAxisGroupByDateGranularity
secondaryAxisOrderBy
omitNullValues
axisNameDisplay
displayDataLabel
displayLegend
rangeMin
rangeMax
color
description
filter
groupMode
timezone
firstDayOfTheWeek
}
... on LineChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
primaryAxisGroupByFieldMetadataId
primaryAxisGroupBySubFieldName
primaryAxisDateGranularity
primaryAxisOrderBy
secondaryAxisGroupByFieldMetadataId
secondaryAxisGroupBySubFieldName
secondaryAxisGroupByDateGranularity
secondaryAxisOrderBy
omitNullValues
axisNameDisplay
displayDataLabel
displayLegend
rangeMin
rangeMax
color
description
filter
isStacked
timezone
firstDayOfTheWeek
}
... on PieChartConfiguration {
graphType
groupByFieldMetadataId
aggregateFieldMetadataId
aggregateOperation
groupBySubFieldName
dateGranularity
orderBy
displayDataLabel
showCenterMetric
displayLegend
color
description
filter
timezone
firstDayOfTheWeek
}
... on AggregateChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
label
displayDataLabel
format
description
filter
timezone
firstDayOfTheWeek
}
... on GaugeChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
displayDataLabel
color
description
filter
timezone
firstDayOfTheWeek
}
... on IframeConfiguration {
url
}
}
pageLayoutTabId
}
`;