Skip to content

The open alternative to Salesforce, designed for AI.

2.2 KB
Raw Blame
export const WIDGET_CONFIGURATION_GQL_FIELDS = `
  ... on BarChartConfiguration {
    configurationType
    aggregateFieldMetadataId
    aggregateOperation
    primaryAxisGroupByFieldMetadataId
    primaryAxisGroupBySubFieldName
    primaryAxisDateGranularity
    primaryAxisOrderBy
    primaryAxisManualSortOrder
    secondaryAxisGroupByFieldMetadataId
    secondaryAxisGroupBySubFieldName
    secondaryAxisGroupByDateGranularity
    secondaryAxisOrderBy
    secondaryAxisManualSortOrder
    omitNullValues
    axisNameDisplay
    displayDataLabel
    displayLegend
    numberFormat
    rangeMin
    rangeMax
    color
    description
    filter
    groupMode
    layout
    isCumulative
    timezone
    firstDayOfTheWeek
  }
  ... on LineChartConfiguration {
    configurationType
    aggregateFieldMetadataId
    aggregateOperation
    primaryAxisGroupByFieldMetadataId
    primaryAxisGroupBySubFieldName
    primaryAxisDateGranularity
    primaryAxisOrderBy
    primaryAxisManualSortOrder
    secondaryAxisGroupByFieldMetadataId
    secondaryAxisGroupBySubFieldName
    secondaryAxisGroupByDateGranularity
    secondaryAxisOrderBy
    secondaryAxisManualSortOrder
    omitNullValues
    axisNameDisplay
    displayDataLabel
    displayLegend
    numberFormat
    rangeMin
    rangeMax
    color
    description
    filter
    isStacked
    isCumulative
    timezone
    firstDayOfTheWeek
  }
  ... on PieChartConfiguration {
    configurationType
    groupByFieldMetadataId
    aggregateFieldMetadataId
    aggregateOperation
    groupBySubFieldName
    dateGranularity
    orderBy
    manualSortOrder
    displayDataLabel
    showCenterMetric
    displayLegend
    numberFormat
    color
    description
    filter
    timezone
    firstDayOfTheWeek
  }
  ... on AggregateChartConfiguration {
    configurationType
    aggregateFieldMetadataId
    aggregateOperation
    label
    displayDataLabel
    numberFormat
    description
    filter
    prefix
    suffix
    timezone
    firstDayOfTheWeek
  }
  ... on IframeConfiguration {
    configurationType
    url
  }
  ... on StandaloneRichTextConfiguration {
    configurationType
    body {
      blocknote
      markdown
      tiptap
    }
  }
`;