@databrainhq/plugin 0.15.0 → 0.15.2

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.
@@ -21,6 +21,7 @@ export type FilterFieldType = {
21
21
  label: string;
22
22
  filterVariant?: FloatingDropDownOption;
23
23
  selectedDropdownValue?: FloatingDropDownOption | FloatingDropDownOption[];
24
+ restrictedMetrics?: FloatingDropDownOption[];
24
25
  };
25
26
  export type FilterFieldProps = {
26
27
  tableName: string;
@@ -41,4 +41,4 @@ export type FullScreenViewProps = {
41
41
  chartAppearance?: ChartAppearanceType;
42
42
  enableEmailCsv?: boolean;
43
43
  };
44
- export declare const FullScreenView: ({ metric, colors, rlsFilters, metricFilterOptions, onMinimize, onArchive, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, sharingSettingsId, appFilters, isInternalApp, isShowChartConfigTab, isHideChartSettings, isHideTablePreview, isAllClient, globalFilters, onDownload, downloadMetrics, isFrontendApp, guestToken, encryptedClient, workspaceId, clientColumnType, isEnableMetricSummary, hideDatePickerOptions, chartAppearance, enableEmailCsv, }: FullScreenViewProps) => React.JSX.Element;
44
+ export declare const FullScreenView: ({ metric, colors, rlsFilters, metricFilterOptions, onMinimize, onArchive, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, sharingSettingsId, appFilters, isInternalApp, isShowChartConfigTab, isHideChartSettings, isHideTablePreview, isAllClient, globalFilters: globalFilterList, onDownload, downloadMetrics, isFrontendApp, guestToken, encryptedClient, workspaceId, clientColumnType, isEnableMetricSummary, hideDatePickerOptions, chartAppearance, enableEmailCsv, }: FullScreenViewProps) => React.JSX.Element;
@@ -76,4 +76,4 @@ export type MetricCardProps = {
76
76
  isAllowedToSeeUnderlyingData?: boolean;
77
77
  noDataImg?: string;
78
78
  };
79
- export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, enableMultiMetricFilters, disableActions, metricFilterPosition, isAllClient, dropdownTheme, optionsIcon, downloadMetrics, onDownload, appearanceOptions, isFrontendApp, guestToken, encryptedClient, workspaceId, clientColumnType, isDisableCardTitle, chartHeight, isEditLayoutEnabled, isTourActive, hideDatePickerOptions, chartAppearance, isDisableMetricLoader, isShadowDisableOnHover, isAllowedToSeeUnderlyingData, noDataImg, }: MetricCardProps) => React.JSX.Element;
79
+ export declare const MetricCard: ({ globalFilters: globalFilterList, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, enableMultiMetricFilters, disableActions, metricFilterPosition, isAllClient, dropdownTheme, optionsIcon, downloadMetrics, onDownload, appearanceOptions, isFrontendApp, guestToken, encryptedClient, workspaceId, clientColumnType, isDisableCardTitle, chartHeight, isEditLayoutEnabled, isTourActive, hideDatePickerOptions, chartAppearance, isDisableMetricLoader, isShadowDisableOnHover, isAllowedToSeeUnderlyingData, noDataImg, }: MetricCardProps) => React.JSX.Element;
@@ -13,7 +13,18 @@ export declare const buildJoinQuery: ({ dbName, relationShip, schemaName, tableN
13
13
  dbName: string;
14
14
  tableName: string;
15
15
  }) => string;
16
- export declare const injectWhereCondition: ({ condition, matchedTableName, matchedTableRegex, query, tableName, dbName, isAsscociatedQuery, joinString, associatedTableNameWithQuotes, }: {
16
+ export declare const injectWhereCondition: ({ condition, matchedTableName, query, isAsscociatedQuery, joinString, associatedTableNameWithQuotes, }: {
17
+ query: string;
18
+ matchedTableName: string;
19
+ matchedTableRegex: RegExp;
20
+ tableName: string;
21
+ condition: string;
22
+ dbName: string;
23
+ isAsscociatedQuery?: boolean | undefined;
24
+ joinString?: string | undefined;
25
+ associatedTableNameWithQuotes?: string | undefined;
26
+ }) => string;
27
+ export declare const injectWhereConditionOld: ({ condition, matchedTableName, matchedTableRegex, query, tableName, dbName, isAsscociatedQuery, joinString, associatedTableNameWithQuotes, }: {
17
28
  query: string;
18
29
  matchedTableName: string;
19
30
  matchedTableRegex: RegExp;
@@ -537,6 +537,7 @@ export type GlobalFilterColumn = {
537
537
  filterVariant?: FloatingDropDownOption;
538
538
  isAutoSelectFilterValue?: boolean;
539
539
  isEnableClearSelection?: boolean;
540
+ restrictedMetrics?: FloatingDropDownOption[];
540
541
  };
541
542
  export type GlobalFilterType = {
542
543
  tableName: string;