autoql-fe-utils 1.7.30 → 1.7.32
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 +10 -4
- package/dist/index.global.js +27 -38
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +29 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -531,6 +531,10 @@ declare const EVALUATION_FREQUENCY_OPTIONS: {
|
|
|
531
531
|
value: number;
|
|
532
532
|
label: string;
|
|
533
533
|
};
|
|
534
|
+
15: {
|
|
535
|
+
value: number;
|
|
536
|
+
label: string;
|
|
537
|
+
};
|
|
534
538
|
30: {
|
|
535
539
|
value: number;
|
|
536
540
|
label: string;
|
|
@@ -1350,7 +1354,7 @@ declare const runQueryValidation: ({ text, domain, apiKey, token, cancelToken, }
|
|
|
1350
1354
|
cancelToken?: any;
|
|
1351
1355
|
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
1352
1356
|
declare const runQuery: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, newColumns, displayOverrides, }?: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any>>;
|
|
1353
|
-
declare const
|
|
1357
|
+
declare const runCachedDashboardQuery: ({ query, domain, apiKey, token, source, orders, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any>>;
|
|
1354
1358
|
declare const exportCSV: ({ queryId, domain, apiKey, token, csvProgressCallback, }?: {
|
|
1355
1359
|
queryId?: string;
|
|
1356
1360
|
domain?: string;
|
|
@@ -2426,13 +2430,14 @@ declare const fetchDataExplorerAutocomplete: ({ suggestion, domain, token, apiKe
|
|
|
2426
2430
|
token?: string;
|
|
2427
2431
|
cancelToken?: any;
|
|
2428
2432
|
}) => Promise<any[]>;
|
|
2429
|
-
declare const fetchDataExplorerSampleQueries: ({ domain, apiKey, token, text, context, columns, }?: {
|
|
2433
|
+
declare const fetchDataExplorerSampleQueries: ({ domain, apiKey, token, text, context, columns, cancelToken, }?: {
|
|
2430
2434
|
domain?: string;
|
|
2431
2435
|
apiKey?: string;
|
|
2432
2436
|
token?: string;
|
|
2433
2437
|
text?: string;
|
|
2434
2438
|
context?: string;
|
|
2435
2439
|
columns?: object;
|
|
2440
|
+
cancelToken?: any;
|
|
2436
2441
|
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
2437
2442
|
declare const fetchDataExplorerSuggestions: ({ pageSize, pageNumber, domain, apiKey, token, text, context, selectedVL, userVLSelection, skipQueryValidation, }?: {
|
|
2438
2443
|
pageSize?: number;
|
|
@@ -2446,11 +2451,12 @@ declare const fetchDataExplorerSuggestions: ({ pageSize, pageNumber, domain, api
|
|
|
2446
2451
|
userVLSelection?: ValueLabel[];
|
|
2447
2452
|
skipQueryValidation?: boolean;
|
|
2448
2453
|
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
2449
|
-
declare const fetchSubjectListV2: ({ domain, apiKey, token, valueLabel }: {
|
|
2454
|
+
declare const fetchSubjectListV2: ({ domain, apiKey, token, valueLabel, cancelToken }: {
|
|
2450
2455
|
domain: any;
|
|
2451
2456
|
apiKey: any;
|
|
2452
2457
|
token: any;
|
|
2453
2458
|
valueLabel: any;
|
|
2459
|
+
cancelToken: any;
|
|
2454
2460
|
}) => Promise<any[]>;
|
|
2455
2461
|
declare const fetchSubjectList: ({ domain, apiKey, token, valueLabel }: {
|
|
2456
2462
|
domain: any;
|
|
@@ -2800,4 +2806,4 @@ declare function color(): {
|
|
|
2800
2806
|
on(): any;
|
|
2801
2807
|
};
|
|
2802
2808
|
|
|
2803
|
-
export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AdditionalSelect, AggType, AggTypeParams, AggTypes, ApiFilter, ApiSorter, Authentication, AutoQLJWT, AvailableSelect, 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, ColumnSelect, ColumnType, ColumnTypes, CustomColumnRowRangeTypes, CustomColumnTypes, CustomColumnValues, 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_COLUMN_NAME, 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, DISABLED_CLASS, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectFilter, DataExplorerSubjectGroups, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateStringPrecisionTypes, DateUTC, DisplayOverride, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FORMULA_CLASS, FUNCTION_OPERATORS, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GLOBAL_OPERATORS, GROUP_TERM_TYPE, GeneralErrorTypes, HIGHLIGHTED_CLASS, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_CHART_ELEMENTS, 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, OPERATORS, ORDERBY_DIRECTIONS, Operators, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QUERY_TIMEOUT_ERROR, QueryData, QueryErrorTypes, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, ROWS_RANGE, ROWS_RANGE_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, TabulatorFilter, TabulatorSorter, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, TranslationTypes, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, WINDOW_FUNCTIONS, addSubjectToRecentSearches, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, aggregateOtherCategory, animateInputText, applyLegendTitleStyles, applyPrecisionToDate, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, assignLabelToManagementDataAlert, authenticationDefault, autoQLConfigDefault, bezierCommand, buildPlainColumnArrayFn, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToFunctionStr, convertToNumber, countDecimals, createDataAlert, createManagementDataAlert, createMutatorFn, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteAllNotifications, deleteDataAlert, deleteMultipleNotifications, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSampleQueries, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotification, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSubjectListV2, fetchSubscribedDataAlerts, fetchSuggestions, fetchTopics, fetchTopicsForVL, fetchVLAutocomplete, filterDataByColumn, formatAdditionalSelectColumn, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatFiltersForTabulator, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatSortersForTabulator, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAllDataAlertsLabels, getAllDataAlertsLabelsByProject, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getCleanColumnName, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getCurrentTimezone, getDashboardRefreshInterval, getDataAlertsByLabel, getDataConfig, getDataFormatting, getDateColumnIndex, getDateColumns, getDateNoQuotes, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayOfTheMonthFromTimestamp, getDayOfTheMonthSuffix, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDefaultJoinColumnAndDisplayNameAndJoinColumnsIndices, getDefaultJoinColumns, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getFnSummary, getFormattedTimestamp, 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, getNotLabeledDataAlerts, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getNumericalColumns, getObjSize, getOpacityScale, getOperators, getPadding, getPieChartData, getPivotColumnIndexConfig, getPlainTextList, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getQueryRequestParams, getQuerySelectableJoinColumns, getQueryValidationQueryText, getRadiusScale, getRangeForAxis, getRecentSearchesFromLocalStorage, getRecentSelectionID, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getSelectableColumns, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringColumns, getStringFromSource, getSuggestionLists, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTodaysDayOfTheMonth, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, initializeQueryValidationOptions, isAggSeed, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isColumnSummable, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isInitialSelectionValid, isListQuery, isNumber, isObject, isOperatorJs, isSingleValueResponse, isTableType, isValueEmpty, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, normalizeString, numberIndicesArraysOverlap, numberSortFn, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, previewDataAlert, previewManagementDataAlert, removeDashboardRefreshInterval, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDashboardTileQuery, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, sendTrainingData, setCaretPosition, setColumnVisibility, setDashboardRefreshInterval, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setRecentSearchesInLocalStorage, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByAlphabet, sortDataByColumn, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, titlelizeString, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, updateManagementDataAlert, updateStartAndEndIndexes, usePivotDataForChart, uuidv4, validateExpression };
|
|
2809
|
+
export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AdditionalSelect, AggType, AggTypeParams, AggTypes, ApiFilter, ApiSorter, Authentication, AutoQLJWT, AvailableSelect, 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, ColumnSelect, ColumnType, ColumnTypes, CustomColumnRowRangeTypes, CustomColumnTypes, CustomColumnValues, 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_COLUMN_NAME, 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, DISABLED_CLASS, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectFilter, DataExplorerSubjectGroups, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateStringPrecisionTypes, DateUTC, DisplayOverride, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FORMULA_CLASS, FUNCTION_OPERATORS, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GLOBAL_OPERATORS, GROUP_TERM_TYPE, GeneralErrorTypes, HIGHLIGHTED_CLASS, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_CHART_ELEMENTS, 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, OPERATORS, ORDERBY_DIRECTIONS, Operators, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QUERY_TIMEOUT_ERROR, QueryData, QueryErrorTypes, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, ROWS_RANGE, ROWS_RANGE_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, TabulatorFilter, TabulatorSorter, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, TranslationTypes, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, WINDOW_FUNCTIONS, addSubjectToRecentSearches, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, aggregateOtherCategory, animateInputText, applyLegendTitleStyles, applyPrecisionToDate, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, assignLabelToManagementDataAlert, authenticationDefault, autoQLConfigDefault, bezierCommand, buildPlainColumnArrayFn, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToFunctionStr, convertToNumber, countDecimals, createDataAlert, createManagementDataAlert, createMutatorFn, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteAllNotifications, deleteDataAlert, deleteMultipleNotifications, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSampleQueries, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotification, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSubjectListV2, fetchSubscribedDataAlerts, fetchSuggestions, fetchTopics, fetchTopicsForVL, fetchVLAutocomplete, filterDataByColumn, formatAdditionalSelectColumn, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatFiltersForTabulator, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatSortersForTabulator, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAllDataAlertsLabels, getAllDataAlertsLabelsByProject, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getCleanColumnName, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getCurrentTimezone, getDashboardRefreshInterval, getDataAlertsByLabel, getDataConfig, getDataFormatting, getDateColumnIndex, getDateColumns, getDateNoQuotes, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayOfTheMonthFromTimestamp, getDayOfTheMonthSuffix, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDefaultJoinColumnAndDisplayNameAndJoinColumnsIndices, getDefaultJoinColumns, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getFnSummary, getFormattedTimestamp, 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, getNotLabeledDataAlerts, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getNumericalColumns, getObjSize, getOpacityScale, getOperators, getPadding, getPieChartData, getPivotColumnIndexConfig, getPlainTextList, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getQueryRequestParams, getQuerySelectableJoinColumns, getQueryValidationQueryText, getRadiusScale, getRangeForAxis, getRecentSearchesFromLocalStorage, getRecentSelectionID, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getSelectableColumns, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringColumns, getStringFromSource, getSuggestionLists, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTodaysDayOfTheMonth, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, initializeQueryValidationOptions, isAggSeed, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isColumnSummable, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isInitialSelectionValid, isListQuery, isNumber, isObject, isOperatorJs, isSingleValueResponse, isTableType, isValueEmpty, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, normalizeString, numberIndicesArraysOverlap, numberSortFn, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, previewDataAlert, previewManagementDataAlert, removeDashboardRefreshInterval, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runCachedDashboardQuery, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, sendTrainingData, setCaretPosition, setColumnVisibility, setDashboardRefreshInterval, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setRecentSearchesInLocalStorage, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByAlphabet, sortDataByColumn, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, titlelizeString, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, updateManagementDataAlert, updateStartAndEndIndexes, usePivotDataForChart, uuidv4, validateExpression };
|
package/dist/index.global.js
CHANGED
|
@@ -16194,6 +16194,10 @@
|
|
|
16194
16194
|
value: 10,
|
|
16195
16195
|
label: "10 mins"
|
|
16196
16196
|
},
|
|
16197
|
+
15: {
|
|
16198
|
+
value: 15,
|
|
16199
|
+
label: "15 mins"
|
|
16200
|
+
},
|
|
16197
16201
|
30: {
|
|
16198
16202
|
value: 30,
|
|
16199
16203
|
label: "30 mins"
|
|
@@ -17453,7 +17457,12 @@
|
|
|
17453
17457
|
numberColumnIndex2 = countColumnIndices[1];
|
|
17454
17458
|
}
|
|
17455
17459
|
if (!isNaN(numberColumnIndex2)) {
|
|
17456
|
-
|
|
17460
|
+
if (numberColumnIndex2 >= 0) {
|
|
17461
|
+
numberColumnIndices2 = [numberColumnIndex2];
|
|
17462
|
+
} else {
|
|
17463
|
+
numberColumnIndex2 = void 0;
|
|
17464
|
+
numberColumnIndices2 = [];
|
|
17465
|
+
}
|
|
17457
17466
|
}
|
|
17458
17467
|
}
|
|
17459
17468
|
if (!currencyColumnIndices)
|
|
@@ -17643,7 +17652,7 @@
|
|
|
17643
17652
|
return tableConfig;
|
|
17644
17653
|
};
|
|
17645
17654
|
var isColumnIndexConfigValid = ({ response, columnIndexConfig, columns, displayType }) => {
|
|
17646
|
-
var _a, _b, _c, _d, _e, _f
|
|
17655
|
+
var _a, _b, _c, _d, _e, _f;
|
|
17647
17656
|
if (!columns || !((_c = (_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.data) == null ? void 0 : _b.rows) == null ? void 0 : _c.length)) {
|
|
17648
17657
|
console.debug("Invalid Config: either no columns or no data were provided to table config validation");
|
|
17649
17658
|
return false;
|
|
@@ -17692,11 +17701,8 @@
|
|
|
17692
17701
|
);
|
|
17693
17702
|
return false;
|
|
17694
17703
|
}
|
|
17695
|
-
if (isNumber(columnIndexConfig.numberColumnIndex2) &&
|
|
17696
|
-
|
|
17697
|
-
return !((_a2 = columns[i]) == null ? void 0 : _a2.is_visible);
|
|
17698
|
-
}) !== void 0)) {
|
|
17699
|
-
console.debug("Table config invalid: Some of the second number column indices were pointing to hidden columns.");
|
|
17704
|
+
if (isNumber(columnIndexConfig.numberColumnIndex2) && !((_f = columns[columnIndexConfig.numberColumnIndex2]) == null ? void 0 : _f.is_visible)) {
|
|
17705
|
+
console.debug("Table config invalid: Second number column index is a hidden column.");
|
|
17700
17706
|
return false;
|
|
17701
17707
|
}
|
|
17702
17708
|
if (displayType === "column_line" /* COLUMN_LINE */ || displayType === "scatterplot" /* SCATTERPLOT */) {
|
|
@@ -30160,25 +30166,18 @@
|
|
|
30160
30166
|
displayOverrides
|
|
30161
30167
|
});
|
|
30162
30168
|
};
|
|
30163
|
-
var
|
|
30169
|
+
var runCachedDashboardQuery = async ({
|
|
30164
30170
|
query,
|
|
30165
|
-
userSelection,
|
|
30166
|
-
userSelectionFinal,
|
|
30167
|
-
translation,
|
|
30168
|
-
test,
|
|
30169
30171
|
domain,
|
|
30170
30172
|
apiKey,
|
|
30171
30173
|
token,
|
|
30172
30174
|
source,
|
|
30173
|
-
filters,
|
|
30174
30175
|
orders,
|
|
30175
30176
|
tableFilters,
|
|
30176
|
-
pageSize,
|
|
30177
30177
|
allowSuggestions,
|
|
30178
30178
|
cancelToken,
|
|
30179
30179
|
scope,
|
|
30180
30180
|
newColumns,
|
|
30181
|
-
displayOverrides,
|
|
30182
30181
|
queryIndex,
|
|
30183
30182
|
tileKey,
|
|
30184
30183
|
dashboardId
|
|
@@ -30195,34 +30194,21 @@
|
|
|
30195
30194
|
console.error("authentication invalid for request");
|
|
30196
30195
|
return Promise.reject({ error: "authentication invalid for request" });
|
|
30197
30196
|
}
|
|
30198
|
-
const url2 = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?key=${apiKey}&query_index=${queryIndex || 0}`;
|
|
30199
|
-
const finalUserSelection = userSelectionFinal || transformUserSelection(userSelection);
|
|
30200
30197
|
let finalScope = scope;
|
|
30201
30198
|
if (!!(source == null ? void 0 : source.includes) && source.includes("data_messenger")) {
|
|
30202
30199
|
finalScope = "data_messenger";
|
|
30203
30200
|
}
|
|
30201
|
+
const queryParams = new URLSearchParams({
|
|
30202
|
+
key: apiKey,
|
|
30203
|
+
query_index: (queryIndex || 0).toString()
|
|
30204
|
+
});
|
|
30205
|
+
const url2 = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
|
|
30204
30206
|
const config = {
|
|
30205
30207
|
headers: {
|
|
30206
30208
|
Authorization: `Bearer ${token}`
|
|
30207
30209
|
}
|
|
30208
30210
|
};
|
|
30209
|
-
|
|
30210
|
-
text: query,
|
|
30211
|
-
source,
|
|
30212
|
-
translation,
|
|
30213
|
-
user_selection: finalUserSelection,
|
|
30214
|
-
test,
|
|
30215
|
-
session_filter_locks: filters,
|
|
30216
|
-
orders,
|
|
30217
|
-
filters: tableFilters,
|
|
30218
|
-
page_size: pageSize,
|
|
30219
|
-
date_format: "ISO8601",
|
|
30220
|
-
scope: finalScope,
|
|
30221
|
-
additional_selects: newColumns,
|
|
30222
|
-
display_overrides: displayOverrides,
|
|
30223
|
-
time_zone: getCurrentTimezone()
|
|
30224
|
-
};
|
|
30225
|
-
return axios_default.post(url2, data, config).then((response) => {
|
|
30211
|
+
return axios_default.get(url2, config).then((response) => {
|
|
30226
30212
|
var _a;
|
|
30227
30213
|
if (!((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.data)) {
|
|
30228
30214
|
throw new Error("Parse error" /* PARSE_ERROR */);
|
|
@@ -30804,7 +30790,8 @@
|
|
|
30804
30790
|
token,
|
|
30805
30791
|
text = "",
|
|
30806
30792
|
context = "",
|
|
30807
|
-
columns
|
|
30793
|
+
columns,
|
|
30794
|
+
cancelToken
|
|
30808
30795
|
} = {}) => {
|
|
30809
30796
|
const url2 = `${domain}/autoql/api/v1/query/querybuilder?key=${apiKey}`;
|
|
30810
30797
|
const data = {
|
|
@@ -30815,7 +30802,8 @@
|
|
|
30815
30802
|
const config = {
|
|
30816
30803
|
headers: {
|
|
30817
30804
|
Authorization: `Bearer ${token}`
|
|
30818
|
-
}
|
|
30805
|
+
},
|
|
30806
|
+
cancelToken
|
|
30819
30807
|
};
|
|
30820
30808
|
return axios_default.post(url2, data, config).then((response) => {
|
|
30821
30809
|
var _a, _b, _c, _d;
|
|
@@ -30882,7 +30870,7 @@
|
|
|
30882
30870
|
return Promise.reject((_a2 = error == null ? void 0 : error.response) == null ? void 0 : _a2.data);
|
|
30883
30871
|
});
|
|
30884
30872
|
};
|
|
30885
|
-
var fetchSubjectListV2 = ({ domain, apiKey, token, valueLabel }) => {
|
|
30873
|
+
var fetchSubjectListV2 = ({ domain, apiKey, token, valueLabel, cancelToken }) => {
|
|
30886
30874
|
if (!token || !domain || !apiKey) {
|
|
30887
30875
|
return Promise.reject(new Error("Unauthenticated"));
|
|
30888
30876
|
}
|
|
@@ -30893,7 +30881,8 @@
|
|
|
30893
30881
|
const config = {
|
|
30894
30882
|
headers: {
|
|
30895
30883
|
Authorization: `Bearer ${token}`
|
|
30896
|
-
}
|
|
30884
|
+
},
|
|
30885
|
+
cancelToken
|
|
30897
30886
|
};
|
|
30898
30887
|
return axios_default.get(url2, config).then((response) => {
|
|
30899
30888
|
var _a, _b;
|