@sisense/sdk-ui 1.7.2 → 1.9.0

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.
Files changed (106) hide show
  1. package/dist/ai/ai-disclaimer.d.ts +5 -0
  2. package/dist/ai/chat-config.d.ts +26 -0
  3. package/dist/ai/chat-dropup.d.ts +12 -0
  4. package/dist/ai/chat-frame.d.ts +7 -4
  5. package/dist/ai/chat-input.d.ts +4 -1
  6. package/dist/ai/chatbot.d.ts +0 -7
  7. package/dist/ai/common/dropup-section.d.ts +8 -0
  8. package/dist/ai/common/icon-button.d.ts +12 -0
  9. package/dist/ai/{toolbar.d.ts → common/toolbar.d.ts} +5 -0
  10. package/dist/ai/common/tooltip.d.ts +1 -1
  11. package/dist/ai/icons/arrow-left-icon.d.ts +5 -1
  12. package/dist/ai/icons/clear-chat-icon.d.ts +2 -1
  13. package/dist/ai/icons/expand-icon.d.ts +3 -1
  14. package/dist/ai/icons/info-icon.d.ts +3 -1
  15. package/dist/ai/icons/light-bulb-icon.d.ts +3 -1
  16. package/dist/ai/icons/message-icon.d.ts +2 -1
  17. package/dist/ai/icons/sisense-logo.d.ts +5 -1
  18. package/dist/ai/icons/three-dots-icon.d.ts +3 -1
  19. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -1
  20. package/dist/ai/icons/thumbs-down-icon.d.ts +2 -1
  21. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -1
  22. package/dist/ai/icons/thumbs-up-icon.d.ts +2 -1
  23. package/dist/ai/messages/chat-welcome-message.d.ts +1 -1
  24. package/dist/ai/messages/clickable-message.d.ts +11 -0
  25. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  26. package/dist/ai/messages/insights-message.d.ts +3 -3
  27. package/dist/ai/messages/jaql-element.d.ts +5 -2
  28. package/dist/ai/messages/message-resolver.d.ts +2 -1
  29. package/dist/ai/messages/nlq-message-group.d.ts +6 -3
  30. package/dist/ai/messages/text-message.d.ts +4 -6
  31. package/dist/ai/nav-back-button.d.ts +6 -3
  32. package/dist/ai/translators/model-translator.d.ts +1 -0
  33. package/dist/ai/translators/query-translator.d.ts +16 -1
  34. package/dist/ai/translators/translate-filters-to-code.d.ts +2 -0
  35. package/dist/ai/translators/translate-props-to-code.d.ts +1 -1
  36. package/dist/ai/translators/utils.d.ts +10 -0
  37. package/dist/ai.js +2981 -2592
  38. package/dist/api/types/dashboard-dto.d.ts +16 -0
  39. package/dist/app/client-application.d.ts +6 -2
  40. package/dist/area-chart.d.ts +14 -18
  41. package/dist/areamap-chart.d.ts +13 -15
  42. package/dist/bar-chart.d.ts +13 -18
  43. package/dist/boxplot-chart.d.ts +11 -25
  44. package/dist/chart/chart.d.ts +8 -66
  45. package/dist/chart-data/cartesian-data.d.ts +1 -1
  46. package/dist/chart-data/chart-data-service.d.ts +1 -2
  47. package/dist/chart-data/data-coloring/types.d.ts +1 -7
  48. package/dist/chart-data-options/types.d.ts +5 -3
  49. package/dist/chart-data-options/utils.d.ts +10 -0
  50. package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
  51. package/dist/column-chart.d.ts +15 -18
  52. package/dist/common/components/loading-indicator.d.ts +82 -0
  53. package/dist/dashboard-widget/dashboard-widget.d.ts +10 -7
  54. package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
  55. package/dist/dashboard-widget/translate-widget-filters.d.ts +22 -14
  56. package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
  57. package/dist/dashboard-widget/types.d.ts +24 -4
  58. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
  59. package/dist/dashboard-widget/utils.d.ts +4 -2
  60. package/dist/debounce-Cc9bQD5m.js +76199 -0
  61. package/dist/dynamic-size-container/default-size.d.ts +5 -1
  62. package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
  63. package/dist/filters/components/common/dropdown.d.ts +1 -1
  64. package/dist/filters/components/common/switch.d.ts +3 -1
  65. package/dist/formulas/use-get-shared-formula.d.ts +3 -3
  66. package/dist/funnel-chart.d.ts +9 -36
  67. package/dist/index.d.ts +1 -2
  68. package/dist/index.js +46556 -7127
  69. package/dist/indicator-chart.d.ts +0 -1
  70. package/dist/line-chart.d.ts +14 -17
  71. package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
  72. package/dist/models/dashboard/types.d.ts +6 -8
  73. package/dist/models/widget/use-get-widget-model.d.ts +16 -21
  74. package/dist/models/widget/widget-model.d.ts +50 -6
  75. package/dist/pie-chart.d.ts +14 -16
  76. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
  77. package/dist/pivot-table/pivot-table.d.ts +43 -3
  78. package/dist/pivot-table/sorting-utils.d.ts +11 -55
  79. package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
  80. package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
  81. package/dist/polar-chart.d.ts +14 -17
  82. package/dist/props.d.ts +72 -13
  83. package/dist/query-execution/use-execute-pivot-query.d.ts +11 -29
  84. package/dist/query-execution/use-execute-query.d.ts +19 -26
  85. package/dist/scatter-chart.d.ts +11 -49
  86. package/dist/scattermap-chart.d.ts +9 -22
  87. package/dist/sunburst-chart.d.ts +10 -15
  88. package/dist/table/table.d.ts +7 -37
  89. package/dist/theme-provider/default-theme-settings.d.ts +9 -0
  90. package/dist/theme-provider/types.d.ts +7 -0
  91. package/dist/translation/resources/en.d.ts +4 -1
  92. package/dist/translation/resources/index.d.ts +8 -2
  93. package/dist/treemap-chart.d.ts +10 -21
  94. package/dist/types.d.ts +172 -4
  95. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  96. package/dist/widgets/common/drilldown.d.ts +1 -20
  97. package/dist/widgets/common/widget-container.d.ts +15 -0
  98. package/dist/widgets/drilldown-widget.d.ts +21 -33
  99. package/dist/widgets/pivot-table-widget.d.ts +22 -0
  100. package/package.json +10 -9
  101. package/dist/ai/chat-style-provider.d.ts +0 -22
  102. package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
  103. package/dist/ai/magic-wand-dropdown.d.ts +0 -7
  104. package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
  105. package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
  106. package/dist/useQuery-76ecbd20.js +0 -121360
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { CompleteThemeSettings } from '..';
3
+ export default function AiDisclaimer({ theme }: {
4
+ theme: CompleteThemeSettings;
5
+ }): JSX.Element;
@@ -13,6 +13,12 @@ export interface ChatConfig {
13
13
  * If not specified, the default value is `4`
14
14
  */
15
15
  numOfRecommendations: number;
16
+ /**
17
+ * Number of recent prompts that should be shown in a chat session
18
+ *
19
+ * If not specified, the default value is `5`
20
+ */
21
+ numOfRecentPrompts: number;
16
22
  /**
17
23
  * The default context (data model or perspective) title to use for a chat session
18
24
  *
@@ -27,6 +33,26 @@ export interface ChatConfig {
27
33
  chatMode?: ChatMode;
28
34
  /** The input prompt text to show in the chat input box */
29
35
  inputPromptText: string;
36
+ /**
37
+ * The welcome text to show at the top of a chat session.
38
+ *
39
+ * A value of `false` will hide the welcome text.
40
+ */
41
+ welcomeText?: string | false;
42
+ /**
43
+ * Boolean flag to show or hide the header in a chat session.
44
+ *
45
+ * @default true
46
+ * @internal
47
+ */
48
+ enableHeader?: boolean;
49
+ /**
50
+ * Boolean flag to show or hide the insights button in a chat session.
51
+ *
52
+ * @default true
53
+ * @internal
54
+ */
55
+ enableInsights?: boolean;
30
56
  }
31
57
  export declare const DEFAULTS: Readonly<ChatConfig>;
32
58
  export type ChatConfigProviderProps = {
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export declare const isCommand: (text: string) => boolean;
3
+ interface ChatDropupProps {
4
+ recentPrompts: string[];
5
+ suggestions: string[];
6
+ isLoading: boolean;
7
+ onSelection: (q: string) => void;
8
+ anchorEl: HTMLElement | null;
9
+ text: string;
10
+ }
11
+ export default function ChatDropup({ recentPrompts, suggestions, isLoading, onSelection, anchorEl, text, }: ChatDropupProps): JSX.Element;
12
+ export {};
@@ -1,8 +1,11 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- type ChatFrameProps = {
1
+ import { Themable } from '../theme-provider/types';
2
+ import { CSSProperties } from 'react';
3
+ type Sizable = {
3
4
  width?: CSSProperties['width'];
4
5
  height?: CSSProperties['height'];
5
- children: ReactNode;
6
6
  };
7
- export default function ChatFrame({ width, height, children, }: ChatFrameProps): JSX.Element;
7
+ export declare const ChatFrame: import("@emotion/styled").StyledComponent<{
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ as?: import("react").ElementType<any> | undefined;
10
+ } & Themable & Sizable, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
11
  export {};
@@ -3,5 +3,8 @@ export type ChatInputProps = {
3
3
  onSendMessage: (message: string) => void;
4
4
  onClearHistoryClick?: () => void;
5
5
  disabled?: boolean;
6
+ recentPrompts: string[];
7
+ suggestions: string[];
8
+ isLoading: boolean;
6
9
  };
7
- export default function ChatInput({ onSendMessage, onClearHistoryClick, disabled, }: ChatInputProps): JSX.Element;
10
+ export default function ChatInput({ onSendMessage, onClearHistoryClick, disabled, recentPrompts, suggestions, isLoading, }: ChatInputProps): JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { ChatConfig } from './chat-config';
3
- import { ChatStyle } from './chat-style-provider';
4
3
  /**
5
4
  * Props for {@link Chatbot} component.
6
5
  */
@@ -17,12 +16,6 @@ export type ChatbotProps = {
17
16
  * If not specified, a default height of `900px` will be used.
18
17
  */
19
18
  height?: CSSProperties['height'];
20
- /**
21
- * Style settings for the chatbot
22
- *
23
- * @internal
24
- */
25
- style?: ChatStyle;
26
19
  /**
27
20
  * Various configuration options for the chatbot
28
21
  */
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface DropupSectionProps {
3
+ title: string;
4
+ items: string[];
5
+ onSelect: (selection: string) => void;
6
+ alwaysExpanded?: boolean;
7
+ }
8
+ export default function DropupSection({ title, items, onSelect, alwaysExpanded, }: DropupSectionProps): JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { type IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';
3
+ import { CompleteThemeSettings } from '../../types';
4
+ interface IconButtonProps extends MuiIconButtonProps {
5
+ $themeSettings?: CompleteThemeSettings;
6
+ }
7
+ declare const IconButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
8
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
9
+ }, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ } & IconButtonProps, {}, {}>;
12
+ export default IconButton;
@@ -1,8 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
+ type ToolbarStyle = {
3
+ textColor: string;
4
+ backgroundColor: string;
5
+ };
2
6
  export interface Props {
3
7
  title: string;
4
8
  leftNav: ReactNode;
5
9
  rightNav?: JSX.Element;
10
+ style: ToolbarStyle;
6
11
  }
7
12
  declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
8
13
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type TooltipProps as MuiTooltipProps } from '@mui/material';
2
+ import { type TooltipProps as MuiTooltipProps } from '@mui/material/Tooltip';
3
3
  type TooltipProps = Pick<MuiTooltipProps, 'title' | 'children'>;
4
4
  export default function Tooltip({ title, children }: TooltipProps): JSX.Element;
5
5
  export {};
@@ -1,2 +1,6 @@
1
1
  /// <reference types="react" />
2
- export default function ArrowLeftIcon(): JSX.Element;
2
+ type Colorable = {
3
+ color: string;
4
+ };
5
+ export default function ArrowLeftIcon({ color }: Colorable): JSX.Element;
6
+ export {};
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export default function ClearChatIcon(): JSX.Element;
2
+ import { Themable } from '../../theme-provider/types';
3
+ export default function ClearChatIcon({ theme }: Themable): JSX.Element;
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export default function ExpandIcon(): JSX.Element;
2
+ export default function ExpandIcon({ fill }: {
3
+ fill?: string;
4
+ }): JSX.Element;
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export default function InfoIcon(): JSX.Element;
2
+ export default function InfoIcon({ fill }: {
3
+ fill?: string;
4
+ }): JSX.Element;
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export default function LightBulbIcon(): JSX.Element;
2
+ export default function LightBulbIcon({ hover }: {
3
+ hover?: boolean;
4
+ }): JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export default function MessageIcon(): JSX.Element;
2
+ import { Themable } from '../../theme-provider/types';
3
+ export default function MessageIcon({ theme }: Themable): JSX.Element;
@@ -1,2 +1,6 @@
1
1
  /// <reference types="react" />
2
- export default function SisenseLogo(): JSX.Element;
2
+ type ColorSchema = 'yellow-white' | 'yellow-black';
3
+ export default function SisenseLogo({ colorSchema }: {
4
+ colorSchema: ColorSchema;
5
+ }): JSX.Element;
6
+ export {};
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export default function ThreeDotsIcon(): JSX.Element;
2
+ export default function ThreeDotsIcon({ fill }: {
3
+ fill?: string;
4
+ }): JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export default function ThumbsDownHoveredIcon(): JSX.Element;
2
+ import { Themable } from '../../theme-provider/types';
3
+ export default function ThumbsDownHoveredIcon({ theme }: Themable): JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export default function ThumbsDownIcon(): JSX.Element;
2
+ import { Themable } from '../../theme-provider/types';
3
+ export default function ThumbsDownIcon({ theme }: Themable): JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export default function ThumbsUpHoveredIcon(): JSX.Element;
2
+ import { Themable } from '../../theme-provider/types';
3
+ export default function ThumbsUpHoveredIcon({ theme }: Themable): JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export default function ThumbsUpIcon(): JSX.Element;
2
+ import { Themable } from '../../theme-provider/types';
3
+ export default function ThumbsUpIcon({ theme }: Themable): JSX.Element;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export default function ChatWelcomeMessage(): JSX.Element;
2
+ export default function ChatWelcomeMessage(): JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ children: string | JSX.Element;
4
+ align: 'left' | 'right';
5
+ onClick?: () => void;
6
+ disabled?: boolean;
7
+ onMouseEnter?: () => void;
8
+ onMouseLeave?: () => void;
9
+ };
10
+ export default function ClickableMessage({ children, align, onClick, disabled, onMouseEnter, onMouseLeave, }: Props): JSX.Element;
11
+ export {};
@@ -3,8 +3,8 @@ type FeedbackWrapperProps = {
3
3
  sourceId: string;
4
4
  data: object;
5
5
  type: string;
6
- rightFooter?: ReactNode;
6
+ buttonVisibility?: 'onHover' | 'always' | 'never';
7
7
  children: ReactNode;
8
8
  };
9
- export default function FeedbackWrapper({ sourceId, data, type, rightFooter, children, }: FeedbackWrapperProps): JSX.Element;
9
+ export default function FeedbackWrapper({ sourceId, data, type, buttonVisibility, children, }: FeedbackWrapperProps): JSX.Element;
10
10
  export {};
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
+ import { GetNlgQueryResultRequest } from '../api/types';
2
3
  export declare function InsightsButton({ onClick, disabled, }: {
3
4
  onClick?: () => void;
4
5
  disabled?: boolean;
5
6
  }): JSX.Element;
6
7
  type InsightsMessageProps = {
7
- dataSource: string;
8
- metadata: object[];
8
+ nlgRequest: GetNlgQueryResultRequest;
9
9
  visible?: boolean;
10
10
  };
11
- export default function InsightsMessage({ dataSource, metadata, visible, }: InsightsMessageProps): JSX.Element | null;
11
+ export default function InsightsMessage({ nlgRequest, visible }: InsightsMessageProps): JSX.Element | null;
12
12
  export {};
@@ -1,4 +1,4 @@
1
- import { DimensionalElement } from '@sisense/sdk-data';
1
+ import { DimensionalElement, SortDirection } from '@sisense/sdk-data';
2
2
  import { MetadataItem } from '@sisense/sdk-query-client';
3
3
  /**
4
4
  * This implementation wraps metadata for a JAQL query. The metadata could be
@@ -15,9 +15,12 @@ import { MetadataItem } from '@sisense/sdk-query-client';
15
15
  * @internal
16
16
  */
17
17
  export declare class JaqlElement extends DimensionalElement {
18
- private metadataItem;
18
+ private readonly metadataItem;
19
19
  expression: string;
20
20
  skipValidation: boolean;
21
+ aggregation?: string;
22
+ formula?: string;
23
+ sortType?: SortDirection;
21
24
  constructor(item: MetadataItem, type: string);
22
25
  get id(): string;
23
26
  jaql(): MetadataItem;
@@ -2,7 +2,8 @@
2
2
  import { ChatMessage } from '../api/types';
3
3
  type MessageResolverProps = {
4
4
  message: ChatMessage;
5
+ isLastMessage?: boolean;
5
6
  };
6
- declare function MessageResolver({ message }: MessageResolverProps): JSX.Element;
7
+ declare function MessageResolver({ message, isLastMessage }: MessageResolverProps): JSX.Element;
7
8
  declare const _default: import("react").MemoExoticComponent<typeof MessageResolver>;
8
9
  export default _default;
@@ -1,10 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { NlqResponseData } from '../api/types';
3
+ interface NlqMessageGroupProps {
4
+ data: NlqResponseData;
5
+ alwaysShowFeedback?: boolean;
6
+ }
3
7
  /**
4
8
  * Renders a NLQ response as a series of chat messages/buttons.
5
9
  *
6
10
  * @internal
7
11
  */
8
- export default function NlqMessageGroup({ data }: {
9
- data: NlqResponseData;
10
- }): JSX.Element;
12
+ export default function NlqMessageGroup({ data, alwaysShowFeedback }: NlqMessageGroupProps): JSX.Element;
13
+ export {};
@@ -1,8 +1,6 @@
1
- /// <reference types="react" />
2
- type Props = {
3
- children: string | JSX.Element;
1
+ import { FC, PropsWithChildren } from 'react';
2
+ type Alignable = {
4
3
  align: 'left' | 'right' | 'full';
5
- onClick?: () => void;
6
4
  };
7
- export default function TextMessage({ children, align, onClick }: Props): JSX.Element;
8
- export {};
5
+ declare const TextMessage: FC<PropsWithChildren<Alignable>>;
6
+ export default TextMessage;
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
- interface Props {
2
+ type Colorable = {
3
+ color: string;
4
+ };
5
+ type Clickable = {
3
6
  onClick: () => void;
4
- }
5
- export default function NavBackButton({ onClick }: Props): JSX.Element;
7
+ };
8
+ export default function NavBackButton({ onClick, color }: Clickable & Colorable): JSX.Element;
6
9
  export {};
@@ -18,6 +18,7 @@ export declare class ModelTranslator {
18
18
  * Gets filters from metadata.
19
19
  *
20
20
  * @param metadata - metadata items
21
+ * @return array of Filter objects
21
22
  */
22
23
  private getFilters;
23
24
  /**
@@ -12,7 +12,7 @@ import { ChartRecommendations } from '../../ai';
12
12
  */
13
13
  export declare class QueryTranslator {
14
14
  private readonly contextTitle;
15
- private indexedFields;
15
+ private readonly indexedFields;
16
16
  /**
17
17
  * Constructor for QueryTranslator.
18
18
  *
@@ -20,6 +20,7 @@ export declare class QueryTranslator {
20
20
  * @param fields - The data source fields
21
21
  */
22
22
  constructor(contextTitle: string, fields: DataSourceField[]);
23
+ private indexFields;
23
24
  /**
24
25
  * Concatenates Aggregation Types.
25
26
  */
@@ -40,6 +41,20 @@ export declare class QueryTranslator {
40
41
  * @returns The simplified MetadataItemJaql
41
42
  */
42
43
  simplifyMetadataItemJaql(item: MetadataItemJaql): MetadataItemJaql;
44
+ /**
45
+ * Simplify filter
46
+ *
47
+ * @param item - the MetadataItem
48
+ * @return the MetadataItem with simplified filter
49
+ */
50
+ simplifyMetadataItemFilter(item: MetadataItem): MetadataItem;
51
+ /**
52
+ * Simplify date and number format
53
+ *
54
+ * @param item - the MetadataItem
55
+ * @return the MetadataItem with simplified format
56
+ */
57
+ simplifyMetadataItemFormat(item: MetadataItem): MetadataItem;
43
58
  /**
44
59
  * Simplifies MetadataItem.
45
60
  *
@@ -0,0 +1,2 @@
1
+ import { Filter } from '@sisense/sdk-data';
2
+ export declare const stringifyFilterList: (filters: Filter[], indent?: number) => string;
@@ -5,4 +5,4 @@ export type FromNotEqualFilterJaql = {
5
5
  fromNotEqual: number;
6
6
  };
7
7
  export type FilterJaql = MembersFilterJaql | FromNotEqualFilterJaql;
8
- export declare const stringifyProps: (props: object, indent?: number, wrapInQuotes?: boolean) => string;
8
+ export declare const stringifyProps: (props: object | string, indent?: number, wrapInQuotes?: boolean) => string;
@@ -1,2 +1,12 @@
1
+ import { ExpandedQueryModel, SimpleQueryModel } from './types';
1
2
  export declare function toKebabCase(str: string): string;
2
3
  export declare function capitalizeFirstLetter(str: string): string;
4
+ /**
5
+ * Sanitize ID of a dimension
6
+ *
7
+ * @param str - input string
8
+ * @return sanitized ID
9
+ */
10
+ export declare function sanitizeDimensionId(str: string): string;
11
+ export declare function validateQueryModel(model: any): SimpleQueryModel;
12
+ export declare function isEmptyQueryModel(queryModel: ExpandedQueryModel | undefined | null): boolean;