Types and Interfaces
API reference for the MicroStrategy types and interfaces provided by the embed-dossier-mstr-react package.
Types and Interfaces
The embed-dossier-mstr-react package provides a comprehensive set of TypeScript types and interfaces that help you work with the MicroStrategy Embedding SDK. These types provide strong typing for all aspects of embedding MicroStrategy content in your React applications.
Core Types
These are the primary types that you'll work with when embedding MicroStrategy content:
| Type | Description |
|---|---|
MicroStrategySDK | The main interface for the MicroStrategy SDK object available on the global window object |
MicroStrategyDossier | Interface for the dossier (dashboard) object returned when creating an embedded dossier |
MicroStrategyDossierConfig | Configuration options for embedding a dossier |
EmbedLibraryPage | Interface for the library page object returned when embedding a library page |
EmbedLibraryPageConfig | Configuration options for embedding a library page |
EmbedDossierConsumptionPage | Interface for the dossier consumption page object |
EmbedDossierConsumptionPageConfig | Configuration options for embedding a dossier consumption page |
EmbedBotConsumptionPage | Interface for the bot consumption page object |
EmbedBotConsumptionPageConfig | Configuration options for embedding a bot consumption page |
EmbedReportPage | Interface for the report page object |
EmbedReportPageConfig | Configuration options for embedding a report page |
Navigation and Structure Types
These types help you work with the structure and navigation elements of MicroStrategy content:
| Type | Description |
|---|---|
TableOfContents | Interface for the table of contents structure of a dossier |
DossierChapter | Interface representing a chapter within a dossier |
DossierPage | Interface representing a page within a dossier |
PageInfo | Information about a page for navigation purposes |
UI and Configuration Types
These types help you customize the appearance and behavior of embedded content:
| Type | Description |
|---|---|
CustomUi | Options for customizing the UI of embedded content |
NavigationBar | Options for configuring the navigation bar |
OptionsFeature | Options for configuring various features |
ShareFeature | Options for configuring sharing capabilities |
Settings | Settings for configuring various aspects of embedded content |
Event Handling Types
These types help you work with events in the MicroStrategy SDK:
| Type | Description |
|---|---|
EventTypes | Types of events that can be listened for |
EventHandler | Interface for an event handler function |
Filter Types
These types help you work with filters in MicroStrategy content:
| Type | Description |
|---|---|
FilterJson | JSON structure for filter definitions |
FilterCreation | Options for creating filters |
FilterListType | Structure for lists of filters |
Global Declarations
The package extends the global Window interface to include MicroStrategy SDK access:
declare global {
interface Window {
microstrategy: MicroStrategySDK
}
}
This allows you to access the MicroStrategy SDK via window.microstrategy after it's loaded.
Type Import Example
When working with the package, you can import the types you need:
import {
EmbedBotConsumptionPageConfig,
EmbedLibraryPage,
MicroStrategyDossier,
MicroStrategyDossierConfig,
} from "embed-dossier-mstr-react"
// Then use these types in your code
const config: MicroStrategyDossierConfig = {
placeholder: document.getElementById("dossier-container"),
url: "https://your-mstr-server/MicroStrategyLibrary/app/[PROJECT_ID]/[DOSSIER_ID]",
}
For more detailed information about each type, follow the links to their individual reference pages.