Types
AccessLog
| Property | Type | Description |
|---|---|---|
| id | string | |
| lastOpened | number |
Action
The Redux actions dispatched by Atoti UI to update its state.
- ActiveToolChangedAction
- ActiveToolChangedAndDataModelExpandedAction
- DashboardLoadedAction
- DashboardUnloadedAction
- DashboardUpdatedAction
- DashboardSavedAction
- WidgetAddedAction
- PageAddedAction
- OpenCommandPaletteAction
- CloseCommandPaletteAction
- ExpandDataModelTreeAction
- CollapseDataModelTreeAction
- IsMoveDashboardModalVisibleAction
- IsOpenDashboardPopupVisibleAction
- IsSaveDashboardAsModalVisibleAction
- IsShareDashboardModalVisibleAction
- IsSettingsPopupVisibleAction
- IsToolsPanelExpandedAction
- IsPresentingAction
- StatusNotificationAddedAction
- StatusNotificationSettledAction
- StatusNotificationRemovedAction
- IsDeferredAction
- ResourcesPanelChangedAction
- WidgetSelectedAction
- ExpandedFolderPathsInHomePageAction
- WidgetsPanelClosedAction
- WidgetsPanelOpenedAction
- WidgetsPanelWidthChangedAction
- ContentClientAction
- MultiAtotiClientAction
- WidgetInDashboardAction<WidgetAction>
- FilterInDashboardAction
- SelectionWithinWidgetClearedAction
- SelectionWithinWidgetChangedAction
ActionProps
- WidgetActionProps<WidgetState, SelectionType, LowLevelSelectionType>
- WidgetInDashboardActionProps<WidgetState, SelectionType, LowLevelSelectionType>
ActiveToolChangedAction
Redux action to change the active tool tab. See activeToolKey in State.
| Property | Type | Description |
|---|---|---|
| toolKey | string | null | |
| type | "activeToolChanged" |
ActiveToolChangedAndDataModelExpandedAction
Redux action to expand the data model and change the active tool. See activeToolKey in State.
| Property | Type | Description |
|---|---|---|
| toolKey | string | null | |
| type | "activeToolChangedAndDataModelExpanded" |
Activity
Information about the past usage of Atoti by the current user. Useful to provide shortcuts to recently used elements, and more. Regroups all pieces of information stored on the Content Server, belonging to a user and which are not settings.
| Property | Type | Description |
|---|---|---|
| lastUsedCube | { cubeName: CubeName; serverKey: string; } | The name and the server key of the last cube selected by the user. It controls which cube is targeted when creating a new widget. |
| recentlyOpenedDashboards | AccessLog[] | The ids of the dashboards recently opened by the current user, ordered by last opened |
| userFilters | Filter<T>[] | Filters attached to the current user and applying to all dashboards she visits. |
| userQueryContext | QueryContextEntry[] | Query context attached to the current user and applying to all dashboards they visit. |
ADataModelNode
A node in a data model tree, under a cube.
| Property | Type | Description |
|---|---|---|
| caption | string | |
| dragItem | any | |
| isActionable | boolean | |
| isDisabled | boolean | |
| isFolder | boolean | |
| cubeName | string | |
| serverKey | string |
AdvancedFilter
- FilterOnTopBottomMembers
- FilterOnLowerOrGreaterValues
- FilterOnValuesRange
- FilterOnLowerOrGreaterCaptions
- FilterOnCaptionsRange
- FilterOnCaptionContaining
- FilterOnExistenceOfValue
- FilterOnRecentDates
AdvancedFilterType
- "topBottomMembers"
- "lowerOrGreaterValue"
- "valuesRange"
- "lowerOrGreaterCaptions"
- "captionsRange"
- "captionsContaining"
- "existenceOfValue"
- "recentDates"
AFieldStyle
The style applied to the values of a Measure or the members of a Hierarchy in the target widget.
| Property | Type | Description |
|---|---|---|
| dateFormat | string | |
| numberFormat | NumberFormat | |
| numberOfDecimals | number |
AFilter
A filter is always contextual to a hierarchy
HierarchyCoordinates & PinnableFilter & {
isExclusionFilter?: boolean;
nonVisualTotals?: boolean;
}
AFolderPermissionUpdateParams
The type of the part of the argument of contentClient.updateFolderPermissions that is always accepted by the method, whether or not the update is recursive.
| Property | Type | Description |
|---|---|---|
| id | string | |
| pathToParentFolder | string[] | |
| type | ContentType |
AllMeasuresInMapping
A tile in the widget mapping, representing all measures.
| Property | Type | Description |
|---|---|---|
| type | "allMeasures" |
Allowlist
A list of strings representing allowed entities, e.g. which tools should be shown in Atoti, or "*" if there are no restrictions.
- T[]
- "*"
AMdxCompoundIdentifier
The common attributes shared by all types of MdxCompoundIdentifier.
| Property | Type | Description |
|---|---|---|
| elementType | "CompoundIdentifier" | |
| identifiers | MdxIdentifier[] |
AMetaData
| Property | Type | Description |
|---|---|---|
| isFolder | boolean | |
| name | string |
ANode
| Property | Type | Description |
|---|---|---|
| caption | string | |
| dragItem | any | |
| isActionable | boolean | |
| isDisabled | boolean | |
| isFolder | boolean |
APlugin
Type extended by every plugin type. Each plugin must specify its key and can come with its own translations.
| Property | Type | Description |
|---|---|---|
| key | string | |
| translations | { [locale: string]: TranslationTree<string>; } |
ApplicationMenu
A menu that is displayed in the header of the application.
ApplicationMenuItem
A menu item that is displayed in the header of the application.
| Property | Type | Description |
|---|---|---|
| key | string |
| Method | Description |
|---|---|
| useMenuItem |
ApplicationSubMenu
A submenu within the menu in the header of the application. The children can be more submenus, or menu items.
| Property | Type | Description |
|---|---|---|
| key | string | |
| children | ApplicationMenu[] |
| Method | Description |
|---|---|
| useMenuItem |
Argument
- "PLACE_HOLDER" /** * boolean, int, double, date, … */
- "SCALAR" /** * function keyword */
- "KEYWORD" /** * string (means will be surrounded by single quotes) */
- "STRING"
ASettingDefinition
Attributes common to all types of setting definitions.
| Property | Type | Description |
|---|---|---|
| defaultValue | V | |
| key | K | |
| searchTokens | string[] | |
| translations | PerLocale<Translations> |
ASettingTranslations
{
title: string;
description: string;
}
AtotiClient
Provides methods to interact with an Atoti server:
-
Allows to run MDX queries via a websocket.
-
Allows to perform REST calls.
| Property | Type | Description |
|---|---|---|
| serverVersion | string | The server's version. |
| serviceVersion | ServiceVersion | The version of the APIs offered by the server's REST and websocket endpoints. |
| url | string | The server's URL. |
| calculatedMembers | { [cubeName: string]: { calculatedMembers?: { [name: string]: { owners: string[]; readers: string[]; }; }; isLoading: boolean; error?: Error; }; } | The list of calculated members per cube, if they are already loaded. See loadCalculatedMembers. |
| connectionStatus | ConnectionStatus | The current connection status of the client. |
| dataModel | DataModel | undefined | The DataModel if it is already loaded. See loadDataModel. |
| dataModelLoadingError | DataModelLoadingError | undefined | The error received from the server in case the data model could not be loaded. |
| drillthroughColumns | { [cubeName: string]: { drillthroughColumns?: DrillthroughColumn[]; isLoading: boolean; error?: Error; }; } | The list of DrillthroughColumn per cube, if they are already loaded. See loadDrillthroughColumns. |
| isDataModelLoading | boolean | Whether the DataModel is still loading. |
| namedSets | { [cubeName: string]: { namedSets?: { [name: string]: { owners: string[]; readers: string[]; }; }; isLoading: boolean; error?: Error; }; } | The list of named sets per cube, if they are already loaded. See loadNamedSets. |
| Method | Description |
|---|---|
| cancelQuery | Cancels the Query identified by queryId. Unregisters the query and marks it as canceled by setting isCanceled to true. |
| connect | Asynchronously connects the client to the Atoti server's query streaming service. Resolves immediately if the client is already connected. |
| createCalculatedMember | Asynchronously creates a calculated member in the cube identified by cubeName. |
| createKpi | Asynchronously creates a Kpi in the cube identified by cubeName. |
| createNamedSet | Asynchronously creates a named set in the cube identified by cubeName. |
| deleteCalculatedMember | Asynchronously deletes a calculated member from the cube identified by cubeName. |
| deleteKpi | Asynchronously deletes a Kpi from the cube identified by cubeName. |
| deleteNamedSet | Asynchronously deletes a named set from the cube identified by cubeName. |
| disconnect | Disconnects the client from the Atoti server's query streaming service. |
| getQuery | Returns the Query identified by queryId if it exists. The returned query includes an optional isCanceled flag indicating whether the query was canceled. |
| getQueryResult | Returns the latest QueryResult for the Query identified by queryId. |
| loadCalculatedMembers | Asynchronously returns the calculated members defined in the cube identified by cubeName. The loaded calculated members are then accessible using addCalculatedMembersListener. |
| loadDataModel | Asynchronously loads the DataModel, making it available through AtotiClient. Can be called several times to load an up-to-date version. |
| loadDrillthroughColumns | Asynchronously loads the list of DrillthroughColumn for cube cubeName, making it available through AtotiClient. |
| loadNamedSets | Asynchronously returns the named sets defined in the cube identified by cubeName. The loaded named sets are then accessible using subscribeToNamedSets. |
| refreshQuery | Re-executes a paused query once. |
| setQuery | Updates the Query identified by queryId or register it if it did not exist. Marks the query as loading and sends a message to the server. If passed, the initialHeaders received during the first call for this query are added to the "REGISTER" websocket message. initialHeaders received on subsequent calls are disregarded. Indeed, the ones attached to the "REGISTER" message are then also attached to the following "UPDATE" messages for this query. |
| subscribeToCalculatedMembers | Registers callback to be called when the calculated members of the cube identified by cubeName change. |
| subscribeToConnectionStatus | Registers callback to be called whenever the client status changes. |
| subscribeToDataModel | Registers callback to be called whenever the data model changes. |
| subscribeToDrillthroughColumns | Registers callback to be called whenever the drillthrough columns change. |
| subscribeToNamedSets | Registers callback to be called when the named sets of the cube identified by cubeName change. |
| subscribeToQuery | Registers callback to be called whenever the Query identified by queryId is updated. |
| subscribeToQueryResult | Registers callback to be called whenever a new QueryResult is received for the Query identified by queryId. |
| updateCalculatedMember | Asynchronously updates a calculated member in the cube identified by cubeName. |
AtotiClientConstructorArgs
Arguments for creating an AtotiClient instance. If no store is provided, one is created internally. See createAtotiClient.
| Property | Type | Description |
|---|---|---|
| pingPeriod | number | |
| requestInit | RequestInit | |
| serverVersion | string | |
| serviceVersion | ServiceVersion | |
| store | AtotiClientStore | |
| url | string |
AtotiClientStore
The store in which the client reads and writes its state. See AtotiClientConstructorArgs.
StaticStore<AtotiClientState, AtotiClientAction>
AttributeRole
Attribute roles define what happens when the user switches from one type of widget to another. For instance, when the user switches from a pivot table to a line chart, the fields belonging to each role are mapped to the attributes of the same role in the target widget.
In the case of a line chart xAxis is primaryOrdinal, values is primaryNumeric, splitBy is secondaryOrdinal and secondaryValues (values mapped to the secondary Y axis) is secondaryNumeric. In the case of a pivot table rows is primaryOrdinal, measures is primaryNumeric and columns is secondaryOrdinal.
- "primaryNumeric"
- "primaryOrdinal"
- "secondaryNumeric"
- "secondaryOrdinal"
- "subplot"
AWidgetState
The state of any widget. Note that each individual widget plugin typically extends this type. If linked to a saved widget, contains a reference to its id and the version that was used when the copy was made. See WidgetMetaData
IsLinkedToSavedWidget extends true ? AWidgetState<T, false> & {
version: number;
id: string;
hasDivergedFromOriginal: boolean;
} : {
isFullScreen?: boolean;
filters?: Filter<T>[];
filterFolders?: FilterFolder[];
queryContext?: QueryContextEntry[];
name?: string;
widgetKey: string;
behavior?: WidgetBehavior;
}
Axis
| Property | Type | Description |
|---|---|---|
| hierarchies | { dimension: DimensionName; hierarchy: HierarchyName; }[] | |
| id | AxisId | |
| maxLevelPerHierarchy | number[] | |
| positions | Member[][] | |
| range | AxisRange |
AxisId
- -1
- 0
- 1
- 2
- 3
- 4
AxisName
- "SLICER"
- "COLUMNS"
- "0"
- "ROWS"
- "1"
- "PAGES"
- "CHAPTERS"
- "SECTIONS"
AxisRange
| Property | Type | Description |
|---|---|---|
| from | number | |
| to | number | |
| axisLength | number | |
| entireAxis | boolean |
BasicDashboardProps
| Property | Type | Description |
|---|---|---|
| activePageKey | string | |
| className | string | |
| initialPageState | Omit<DashboardPageState, "name"> | |
| isExportingToPDF | boolean | |
| LeafComponent | ComponentType<LeafProps> | |
| onActivePageChange | (newActivePageKey: string) => void | |
| onChange | (newState: DashboardState) => void | |
| onLoaded | () => void | |
| onSelectionChange | (newSelection: { pageKey: string; leafKey: string; selection: SelectionWithinWidget; }) => void | |
| onWidgetSelected | (newSelectedLeafKey: string) => void | |
| selectedLeafKey | string | |
| selection | { [pageKey: string]: { [leafKey: string]: SelectionWithinWidget; }; } | |
| state | DashboardState | |
| style | CSSProperties | |
| tabBarExtraContent | ReactNode | |
| tabsBarLeftExtraContent | ReactNode |
CalculatedMeasureEditionHandlers
The handlers called upon editing a calculated measure.
| Property | Type | Description |
|---|---|---|
| onAfterCalculatedMeasureSaved | CalculatedMeasureSubmitCallback<"cube"> | |
| onAfterCalculatedMeasureSavedAndApplied | CalculatedMeasureSubmitCallback<"cube"> |
CalendarFilter
CalendarFilterType
- "timePeriodToDate"
- "previousOrNextTimePeriods"
- "dateRange"
Catalog
| Property | Type | Description |
|---|---|---|
| cubes | T extends "raw" ? Cube<"raw">[] : { [cubeName: string]: Cube<"indexed">; } | |
| name | string |
CatalogNode
A data model tree node representing a catalog
| Property | Type | Description |
|---|---|---|
| caption | string | |
| dragItem | any | |
| isActionable | boolean | |
| isDisabled | boolean | |
| isFolder | boolean | |
| type | "catalog" |
Cell
| Property | Type | Description |
|---|---|---|
| formattedValue | string | |
| ordinal | number | |
| properties | { [key in CellProperty]?: null | string | number | undefined; } | |
| value | number | string |
CellPlugin
Plugin useful for cell Components usable on table widgets.
| Property | Type | Description |
|---|---|---|
| key | string | |
| translations | { [locale: string]: TranslationTree<string>; } | |
| Cell | ForwardRefExoticComponent<PropsWithRef<CellPropsType>> |