autoql-fe-utils 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -118,6 +118,8 @@ declare class AggType {
118
118
  declare class DataExplorerSubject {
119
119
  id: string;
120
120
  type: DataExplorerTypes;
121
+ filters?: DataExplorerSubjectFilter[];
122
+ groups?: DataExplorerSubjectGroups[];
121
123
  displayName: string;
122
124
  formattedType?: string;
123
125
  text?: string;
@@ -596,6 +598,8 @@ interface SubjectSuggestion {
596
598
  name: string;
597
599
  display_name: string;
598
600
  query: string;
601
+ filters: DataExplorerSubjectFilter[];
602
+ groups: DataExplorerSubjectGroups[];
599
603
  }
600
604
  interface ValueLabelSuggestion {
601
605
  canonical: string;
@@ -644,6 +648,17 @@ type AutoQLJWT = {
644
648
  email: string;
645
649
  access_control_id: string[];
646
650
  };
651
+ interface DataExplorerSubjectFilter {
652
+ column_type: string;
653
+ display_name: string;
654
+ table_column: string;
655
+ token_string: string;
656
+ }
657
+ interface DataExplorerSubjectGroups {
658
+ column_type: string;
659
+ display_name: string;
660
+ table_column: string;
661
+ }
647
662
 
648
663
  declare const DEFAULT_CSS_PREFIX = "react-autoql";
649
664
  declare const authenticationDefault: {
@@ -2061,7 +2076,7 @@ declare const runQueryValidation: ({ text, domain, apiKey, token, cancelToken, }
2061
2076
  token?: string;
2062
2077
  cancelToken?: any;
2063
2078
  }) => Promise<axios.AxiosResponse<any, any>>;
2064
- declare const runQuery: ({ query, userSelection, userSelectionFinal, debug, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, }?: QueryParams) => Promise<any>;
2079
+ declare const runQuery: ({ query, userSelection, userSelectionFinal, debug, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, }?: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any>>;
2065
2080
  declare const exportCSV: ({ queryId, domain, apiKey, token, csvProgressCallback, }?: {
2066
2081
  queryId?: string;
2067
2082
  domain?: string;
@@ -2094,13 +2109,12 @@ declare const fetchAutocomplete: ({ suggestion, domain, apiKey, token, }?: {
2094
2109
  apiKey?: string;
2095
2110
  token?: string;
2096
2111
  }) => Promise<axios.AxiosResponse<any, any>>;
2097
- declare const fetchVLAutocomplete: ({ suggestion, domain, token, apiKey, context, filter, cancelToken, }?: {
2112
+ declare const fetchVLAutocomplete: ({ suggestion, domain, token, apiKey, context, cancelToken, }?: {
2098
2113
  suggestion?: string;
2099
2114
  domain?: string;
2100
2115
  apiKey?: string;
2101
2116
  token?: string;
2102
2117
  context?: string;
2103
- filter?: string;
2104
2118
  cancelToken?: any;
2105
2119
  }) => Promise<axios.AxiosResponse<any, any>>;
2106
2120
  declare const fetchFilters: ({ apiKey, token, domain, }?: {
@@ -2226,4 +2240,4 @@ declare function color(): {
2226
2240
  on(): any;
2227
2241
  };
2228
2242
 
2229
- export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, Authentication, AutoQLJWT, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column, Column$1 as ColumnObj, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_CSS_PREFIX, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MAX_RECENT_SEARCHES, MAX_ROWS_FOR_PIE_CHART, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QUERY_TIMEOUT_ERROR, QueryData, QueryErrorTypes, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addSubjectToRecentSearches, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, aggregateOtherCategory, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, bezierCommand, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSampleQueries, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSubjectListV2, fetchSuggestions, fetchTopics, fetchTopicsForVL, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramColumnObj, getHistogramScale, getInitialBucketSize, getInitialSelections, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getOpacityScale, getPadding, getPieChartData, getPivotColumnIndexConfig, getPlainTextList, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getQueryRequestParams, getQueryValidationQueryText, getRadiusScale, getRangeForAxis, getRecentSearchesFromLocalStorage, getRecentSelectionID, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSuggestionLists, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, initializeQueryValidationOptions, invertArray, isAggSeed, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isInitialSelectionValid, isListQuery, isNumber, isObject, isSingleValueResponse, isTableType, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, sendTrainingData, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setRecentSearchesInLocalStorage, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, updateStartAndEndIndexes, usePivotDataForChart, uuidv4, validateExpression };
2243
+ export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, Authentication, AutoQLJWT, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column, Column$1 as ColumnObj, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_CSS_PREFIX, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectFilter, DataExplorerSubjectGroups, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MAX_RECENT_SEARCHES, MAX_ROWS_FOR_PIE_CHART, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QUERY_TIMEOUT_ERROR, QueryData, QueryErrorTypes, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addSubjectToRecentSearches, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, aggregateOtherCategory, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, bezierCommand, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSampleQueries, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSubjectListV2, fetchSuggestions, fetchTopics, fetchTopicsForVL, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramColumnObj, getHistogramScale, getInitialBucketSize, getInitialSelections, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getOpacityScale, getPadding, getPieChartData, getPivotColumnIndexConfig, getPlainTextList, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getQueryRequestParams, getQueryValidationQueryText, getRadiusScale, getRangeForAxis, getRecentSearchesFromLocalStorage, getRecentSelectionID, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSuggestionLists, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, initializeQueryValidationOptions, invertArray, isAggSeed, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isInitialSelectionValid, isListQuery, isNumber, isObject, isSingleValueResponse, isTableType, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, sendTrainingData, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setRecentSearchesInLocalStorage, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, updateStartAndEndIndexes, usePivotDataForChart, uuidv4, validateExpression };
@@ -14091,15 +14091,6 @@
14091
14091
  PrecisionTypes2["MINUTE"] = "MINUTE";
14092
14092
  return PrecisionTypes2;
14093
14093
  })(PrecisionTypes || {});
14094
- var DateStringPrecisionTypes = /* @__PURE__ */ ((DateStringPrecisionTypes2) => {
14095
- DateStringPrecisionTypes2["DOW"] = "DOW";
14096
- DateStringPrecisionTypes2["MONTHONLY"] = "MONTHONLY";
14097
- DateStringPrecisionTypes2["WEEKONLY"] = "WEEKONLY";
14098
- DateStringPrecisionTypes2["QUARTERONLY"] = "QUARTERONLY";
14099
- DateStringPrecisionTypes2["HOUR"] = "HOUR";
14100
- DateStringPrecisionTypes2["MINUTE"] = "MINUTE";
14101
- return DateStringPrecisionTypes2;
14102
- })(DateStringPrecisionTypes || {});
14103
14094
  var AggTypes = /* @__PURE__ */ ((AggTypes2) => {
14104
14095
  AggTypes2["SUM"] = "SUM";
14105
14096
  AggTypes2["AVG"] = "AVG";
@@ -14225,13 +14216,15 @@
14225
14216
  var DataExplorerSubject = class {
14226
14217
  constructor(obj) {
14227
14218
  if (isSubject(obj)) {
14228
- const { display_name, name, query } = obj;
14219
+ const { display_name, name, query, filters, groups } = obj;
14229
14220
  this.id = name;
14230
14221
  this.type = "SUBJECT" /* SUBJECT_TYPE */;
14231
14222
  this.query = query;
14232
14223
  this.formattedType = "Topic";
14233
14224
  this.displayName = display_name;
14234
14225
  this.context = name;
14226
+ this.filters = filters;
14227
+ this.groups = groups;
14235
14228
  } else if (isValueLabel(obj)) {
14236
14229
  const { canonical, keyword, show_message, format_txt } = obj;
14237
14230
  this.id = canonical;
@@ -15340,7 +15333,7 @@
15340
15333
  }),
15341
15334
  STRING: new ColumnType({
15342
15335
  type: "STRING" /* STRING */,
15343
- description: "Category",
15336
+ description: "Text",
15344
15337
  continuous: false,
15345
15338
  aggregable: true,
15346
15339
  aggOptions: ["COUNT" /* COUNT */, "COUNT_DISTINCT" /* COUNT_DISTINCT */],
@@ -16412,39 +16405,30 @@
16412
16405
  let formattedValue = value;
16413
16406
  try {
16414
16407
  switch (col.precision) {
16415
- case "DOW" /* DOW */: {
16408
+ case "DOW": {
16416
16409
  formattedValue = formatDOW(value, col);
16417
16410
  break;
16418
16411
  }
16419
- case "HOUR" /* HOUR */: {
16412
+ case "HOUR": {
16420
16413
  const dayjsTime = dayjsWithPlugins_default.utc(value, "THH:mm:ss.SSSZ").utc();
16421
16414
  if (dayjsTime.isValid()) {
16422
16415
  formattedValue = dayjsTime.format("h:00A");
16423
16416
  }
16424
16417
  break;
16425
16418
  }
16426
- case "MINUTE" /* MINUTE */: {
16419
+ case "MINUTE": {
16427
16420
  const dayjsTime = dayjsWithPlugins_default.utc(value, "THH:mm:ss.SSSZ").utc();
16428
16421
  if (dayjsTime.isValid()) {
16429
16422
  formattedValue = dayjsTime.format("h:mmA");
16430
16423
  }
16431
16424
  break;
16432
16425
  }
16433
- case "MONTHONLY" /* MONTHONLY */: {
16434
- const monthNumber = parseInt(value) - 1;
16435
- const monthDayjs = dayjsWithPlugins_default().month(monthNumber);
16436
- if (monthDayjs.isValid()) {
16437
- formattedValue = monthDayjs.format("MMMM");
16438
- }
16439
- break;
16440
- }
16441
- case "WEEKONLY" /* WEEKONLY */: {
16442
- break;
16443
- }
16444
- case "QUARTERONLY" /* QUARTERONLY */: {
16426
+ case "MONTH": {
16427
+ formattedValue = value;
16445
16428
  break;
16446
16429
  }
16447
16430
  default: {
16431
+ formattedValue = value;
16448
16432
  break;
16449
16433
  }
16450
16434
  }
@@ -27574,7 +27558,7 @@
27574
27558
  };
27575
27559
  return axios_default.get(url2, config).then((response) => Promise.resolve(response)).catch((error) => formatErrorResponse(error));
27576
27560
  };
27577
- var runQuery = ({
27561
+ var runQuery = async ({
27578
27562
  query,
27579
27563
  userSelection,
27580
27564
  userSelectionFinal,
@@ -27595,35 +27579,18 @@
27595
27579
  scope = "null"
27596
27580
  } = {}) => {
27597
27581
  if (enableQueryValidation && !(userSelection == null ? void 0 : userSelection.length) && !skipQueryValidation) {
27598
- return runQueryValidation({
27599
- text: query,
27600
- domain,
27601
- apiKey,
27602
- token,
27603
- cancelToken
27604
- }).then((response) => {
27605
- if (failedValidation(response)) {
27606
- return Promise.resolve(response);
27607
- }
27608
- return runQueryOnly({
27609
- query,
27610
- userSelection,
27611
- userSelectionFinal,
27612
- debug,
27613
- test,
27582
+ try {
27583
+ const queryValidationResponse = await runQueryValidation({
27584
+ text: query,
27614
27585
  domain,
27615
27586
  apiKey,
27616
27587
  token,
27617
- source,
27618
- filters,
27619
- orders,
27620
- tableFilters,
27621
- pageSize,
27622
- allowSuggestions,
27623
- cancelToken,
27624
- scope
27625
- }).catch((error) => error);
27626
- }).catch((error) => {
27588
+ cancelToken
27589
+ });
27590
+ if (failedValidation(queryValidationResponse)) {
27591
+ return Promise.resolve(queryValidationResponse);
27592
+ }
27593
+ } catch (error) {
27627
27594
  if ((error == null ? void 0 : error.message) === REQUEST_CANCELLED_ERROR) {
27628
27595
  return Promise.reject({
27629
27596
  data: { message: REQUEST_CANCELLED_ERROR }
@@ -27631,7 +27598,7 @@
27631
27598
  }
27632
27599
  console.error(error);
27633
27600
  return Promise.reject(error);
27634
- });
27601
+ }
27635
27602
  }
27636
27603
  return runQueryOnly({
27637
27604
  query,
@@ -27767,7 +27734,6 @@
27767
27734
  token,
27768
27735
  apiKey,
27769
27736
  context,
27770
- filter: filter3,
27771
27737
  cancelToken
27772
27738
  } = {}) => {
27773
27739
  var _a;
@@ -27780,7 +27746,7 @@
27780
27746
  }
27781
27747
  const url2 = `${domain}/autoql/api/v1/query/vlautocomplete?text=${encodeURIComponent(
27782
27748
  text
27783
- )}&key=${apiKey}&context=${context}&filter=${filter3}`;
27749
+ )}&key=${apiKey}&context=${context}`;
27784
27750
  const config = {
27785
27751
  headers: {
27786
27752
  Authorization: `Bearer ${token}`
@@ -28777,7 +28743,7 @@
28777
28743
  }
28778
28744
  });
28779
28745
  const data = { ...dataAlert, id: void 0 };
28780
- const url2 = `${domain}/autoql/api/v1/data-alerts?validate=false&key=${apiKey}`;
28746
+ const url2 = `${domain}/autoql/api/v1/data-alerts?key=${apiKey}`;
28781
28747
  return axiosInstance.post(url2, data).catch((error) => {
28782
28748
  var _a;
28783
28749
  return Promise.reject((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data);