@digital-ai/dot-components 3.7.0 → 3.8.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.
- package/index.esm.js +2671 -590
- package/package.json +1 -1
- package/src/lib/components/analytics/dashboard-actions/DashboardActions.d.ts +19 -0
- package/src/lib/components/analytics/dashboard-actions/DashboardActions.styles.d.ts +2 -0
- package/src/lib/components/analytics/dashboard-actions/DashboardOptionsMenu.d.ts +10 -0
- package/src/lib/components/analytics/dashboard-actions/DashboardOptionsMenu.styles.d.ts +1 -0
- package/src/lib/components/analytics/dashboard-actions/DashboardPublishConfirm.d.ts +18 -0
- package/src/lib/components/analytics/dashboard-actions/DashboardPublishConfirm.styles.d.ts +6 -0
- package/src/lib/components/analytics/dashboard-dialog/DashboardDialog.d.ts +30 -0
- package/src/lib/components/analytics/dashboard-dialog/DashboardDialog.styles.d.ts +3 -0
- package/src/lib/components/analytics/dashboard-header/DashboardHeader.d.ts +6 -0
- package/src/lib/components/analytics/dashboard-header/DashboardHeader.styles.d.ts +1 -0
- package/src/lib/components/analytics/metadata-api/MetadataApiProvider.d.ts +45 -0
- package/src/lib/components/analytics/metadata-api/openapi/core/ApiError.d.ts +8 -0
- package/src/lib/components/analytics/metadata-api/openapi/core/ApiRequestOptions.d.ts +12 -0
- package/src/lib/components/analytics/metadata-api/openapi/core/ApiResult.d.ts +7 -0
- package/src/lib/components/analytics/metadata-api/openapi/core/OpenAPI.d.ts +15 -0
- package/src/lib/components/analytics/metadata-api/openapi/core/request.d.ts +9 -0
- package/src/lib/components/analytics/metadata-api/openapi/index.d.ts +48 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/AllCategoriesResponse.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/Author.d.ts +4 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/BiServerResponse.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/CategoriesResponse.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardCopyBody.d.ts +18 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardCreateBody.d.ts +74 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPatchBody.d.ts +74 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPutBody.d.ts +74 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardView.d.ts +106 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardViewPagedResponse.d.ts +6 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/Entity.d.ts +7 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/EntityAttribute.d.ts +11 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/EntityAttributePagedResponse.d.ts +6 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/EntityAttributeRequest.d.ts +4 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/EntityClass.d.ts +7 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/EntityClassPagedResponse.d.ts +6 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/EntityPagedResponse.d.ts +6 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/Error.d.ts +18 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/GuestTokenRequest.d.ts +14 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/HealthCheckResponse.d.ts +9 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/HelpContent.d.ts +5 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentCreateBody.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentPagedResponse.d.ts +6 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentPutBody.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/MSTRLoginTokenResponse.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/MSTRServerResponse.d.ts +5 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/MetadataResponse.d.ts +5 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/Origin.d.ts +7 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/OriginInstance.d.ts +7 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/OriginInstancePagedResponse.d.ts +6 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/OriginPagedResponse.d.ts +6 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/PaginationHeaders.d.ts +7 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/PaginationMetadata.d.ts +9 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/SSLoginTokenResponse.d.ts +4 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/TenantInfo.d.ts +5 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/VersionResponse.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/BiService.d.ts +59 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/CategoriesService.d.ts +22 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/DashboardsService.d.ts +125 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/EntitiesService.d.ts +57 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/EntityAttributesService.d.ts +69 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/EntityClassService.d.ts +56 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/HelpContentService.d.ts +51 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/OriginInstancesService.d.ts +56 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/OriginsService.d.ts +56 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/UtilityService.d.ts +46 -0
- package/src/lib/components/board/board/Board.context.d.ts +5 -0
- package/src/lib/components/board/board/Board.d.ts +8 -0
- package/src/lib/components/board/board/Board.styles.d.ts +8 -0
- package/src/lib/components/board/board/index.d.ts +2 -0
- package/src/lib/components/board/column/Column.context.d.ts +5 -0
- package/src/lib/components/board/column/Column.d.ts +7 -0
- package/src/lib/components/board/column/Column.styles.d.ts +7 -0
- package/src/lib/components/board/column/index.d.ts +2 -0
- package/src/lib/components/board/column-actionbar/ColumnActionBar.d.ts +2 -0
- package/src/lib/components/board/column-actionbar/ColumnActionBar.styles.d.ts +6 -0
- package/src/lib/components/board/column-actionbar/index.d.ts +1 -0
- package/src/lib/components/board/column-collapse/ColumnCollapse.d.ts +6 -0
- package/src/lib/components/board/column-collapse/index.d.ts +1 -0
- package/src/lib/components/board/column-expand/ColumnExpand.d.ts +6 -0
- package/src/lib/components/board/column-expand/index.d.ts +1 -0
- package/src/lib/components/board/column-header/ColumnHeader.d.ts +5 -0
- package/src/lib/components/board/column-header/ColumnHeader.styles.d.ts +8 -0
- package/src/lib/components/board/column-header/index.d.ts +1 -0
- package/src/lib/components/board/column-items/ColumnItems.d.ts +5 -0
- package/src/lib/components/board/column-items/ColumnItems.styles.d.ts +6 -0
- package/src/lib/components/board/column-items/index.d.ts +1 -0
- package/src/lib/components/board/column-summary/ColumnSummary.d.ts +5 -0
- package/src/lib/components/board/column-summary/ColumnSummary.styles.d.ts +8 -0
- package/src/lib/components/board/column-summary/index.d.ts +1 -0
- package/src/lib/components/board/index.d.ts +9 -0
- package/src/lib/components/board/interfaces.d.ts +43 -0
- package/src/lib/components/core-api/openapi/models/ApplicationModel.d.ts +1 -1
- package/src/lib/components/index.d.ts +8 -1
- package/src/lib/components/snackbar/SnackbarProvider.d.ts +2 -0
- package/src/lib/components/snackbar/index.d.ts +1 -1
- package/src/lib/components/snackbar/utils/helpers.d.ts +9 -0
- package/src/lib/utils/index.d.ts +10 -0
- /package/src/lib/{components/core-api → utils/cancelable-promise}/CancelablePromise.d.ts +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApplicationModel } from '../../core-api/openapi';
|
|
2
|
+
import { AllCategories } from '../metadata-api/MetadataApiProvider';
|
|
3
|
+
import { DashboardView } from '../metadata-api/openapi/';
|
|
4
|
+
interface DashboardActionsCommonProps {
|
|
5
|
+
canEdit?: boolean;
|
|
6
|
+
dashboard: DashboardView;
|
|
7
|
+
isEdit?: boolean;
|
|
8
|
+
onClose?: (dashboard: DashboardView) => void;
|
|
9
|
+
onDuplicated?: (dashboard: DashboardView, isDone?: boolean) => void;
|
|
10
|
+
onFavorite?: (id: string, value: boolean) => void;
|
|
11
|
+
onStatusChanged?: (dashboard: DashboardView) => void;
|
|
12
|
+
onViewMode?: (dashboard: DashboardView, mode: string) => void;
|
|
13
|
+
}
|
|
14
|
+
interface DashboardActionsProps extends DashboardActionsCommonProps {
|
|
15
|
+
applications: ApplicationModel[];
|
|
16
|
+
categories: AllCategories;
|
|
17
|
+
}
|
|
18
|
+
declare function DotDashboardActions({ applications, categories, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDuplicated, onViewMode, }: DashboardActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { DashboardActionsCommonProps, DotDashboardActions };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DashboardView } from '../metadata-api/openapi';
|
|
2
|
+
interface DashboardOptionsMenuProps {
|
|
3
|
+
dashboard: DashboardView;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
onStartDuplicate?: (dashboard: DashboardView) => void;
|
|
6
|
+
onStartStatusChange?: (dashboard: DashboardView, status: DashboardView.lifecycle_state) => void;
|
|
7
|
+
onViewMode?: (dashboard: DashboardView, mode: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function DotDashboardOptionsMenu({ dashboard, isEdit, onStartDuplicate, onStartStatusChange, onViewMode, }: DashboardOptionsMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledDotMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: import("../../menu/Menu").MenuProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApplicationModel } from '../../core-api/openapi';
|
|
2
|
+
import { AllCategoriesResponse, DashboardView } from '../metadata-api/openapi';
|
|
3
|
+
interface DashboardPublishConfirmProps {
|
|
4
|
+
/** List of applications the dashboard can be published to **/
|
|
5
|
+
applicationList: ApplicationModel[];
|
|
6
|
+
/** Categories for dashboard publishing **/
|
|
7
|
+
categories: AllCategoriesResponse;
|
|
8
|
+
/** Dashboard to confirm publishing for **/
|
|
9
|
+
dashboardToPublish: DashboardView;
|
|
10
|
+
/** Dashboard to confirm unpublishing for **/
|
|
11
|
+
dashboardToUnpublish: DashboardView;
|
|
12
|
+
/** When the confirmation is closed (canceled, finished, or clicked away) this function is called **/
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
/** When a dashboard is updated, this function is called with the updated dashboard **/
|
|
15
|
+
onStatusChanged: (updatedDashboard: DashboardView) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function DotDashboardPublishConfirm({ applicationList, categories, dashboardToPublish, dashboardToUnpublish, onClose, onStatusChanged, }: Readonly<DashboardPublishConfirmProps>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const dashboardCategoriesContainerClassName = "dashboard-categories-container";
|
|
2
|
+
export declare const InlineMessage: import("styled-components").StyledComponent<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../../typography/Typography").TypographyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
3
|
+
export declare const StyledPublishConfirmDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const StyledAppSelectDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledAppSelectDotAutoComplete: import("styled-components").StyledComponent<(<T extends import("../..").AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: import("../../auto-complete/AutoComplete").AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element), any, {}, never>;
|
|
6
|
+
export declare const StyledAppSelectAutoCompleteOption: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InputSelectOption } from '../../input-form-fields/InputSelect';
|
|
2
|
+
import { DashboardView } from '../metadata-api/openapi';
|
|
3
|
+
export declare const DashboardAppTypeOptions: InputSelectOption[];
|
|
4
|
+
interface DashboardData {
|
|
5
|
+
categories: string[];
|
|
6
|
+
description: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DASHBOARD_NAME_MAX_LENGTH = 250;
|
|
10
|
+
export declare const DASHBOARD_DESCRIPTION_MAX_LENGTH = 250;
|
|
11
|
+
interface DashboardDialogProps {
|
|
12
|
+
/** Categories for dashboard publishing **/
|
|
13
|
+
availableCategories: string[];
|
|
14
|
+
/** Dashboard to copy when creating a new dashoard. **/
|
|
15
|
+
copyDashboard?: DashboardView;
|
|
16
|
+
/** Dashboard to edit **/
|
|
17
|
+
editDashboard?: DashboardView;
|
|
18
|
+
/** When the confirmation is closed (canceled, finished, or clicked away) this function is called **/
|
|
19
|
+
onClose: (returnToList?: boolean) => void;
|
|
20
|
+
/** When the form is submitted with no changes, this function is called **/
|
|
21
|
+
onContinue?: () => void;
|
|
22
|
+
/** When the form is submitted with a valid name this function is called **/
|
|
23
|
+
onSubmit: (data: DashboardData, returnToList?: boolean) => Promise<void>;
|
|
24
|
+
/** Controls if the dialog should be open or not **/
|
|
25
|
+
open: boolean;
|
|
26
|
+
/** Dialog title **/
|
|
27
|
+
title?: string;
|
|
28
|
+
}
|
|
29
|
+
declare function DotDashboardDialog({ availableCategories, copyDashboard, editDashboard, open, onClose, onSubmit, onContinue, title, }: Readonly<DashboardDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export { DotDashboardDialog, DashboardData };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DialogActions } from '@mui/material';
|
|
2
|
+
export declare const StyledDashboardDialog: import("styled-components").StyledComponent<({ ariaLabel, cancelButtonProps, cancelButtonVisible, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, children, closeIconVisible, closeOnClickAway, closeOnSubmit, hasPrimaryAction, onCancel, onSubmit, open, submitButtonProps, title, }: import("../../dialog/Dialog").DialogProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
3
|
+
export declare const StyledDialogActions: import("styled-components").StyledComponent<typeof DialogActions, any, {}, never>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DashboardActionsCommonProps } from '../dashboard-actions/DashboardActions';
|
|
2
|
+
interface DashboardHeaderProps extends DashboardActionsCommonProps {
|
|
3
|
+
accountId?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function DotDashboardHeader({ accountId, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDuplicated, onViewMode, }: DashboardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { DashboardHeaderProps, DotDashboardHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledDashboardHeader: import("styled-components").StyledComponent<({ ariaLabel, children, className, "data-testid": dataTestId, variant, }: import("../../action-toolbar/ActionToolbar").DotActionBarProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ApiError, AllCategoriesResponse, DashboardView, DashboardCopyBody, DashboardPatchBody } from './openapi';
|
|
3
|
+
export interface MetadataApiProviderProps {
|
|
4
|
+
accountOverrideId?: string;
|
|
5
|
+
apiUrl: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
token?: string;
|
|
8
|
+
}
|
|
9
|
+
interface DotMetadataApiContextProps {
|
|
10
|
+
categories: AllCategoriesResponse;
|
|
11
|
+
categoriesLoading: boolean;
|
|
12
|
+
dashboards: DashboardView[];
|
|
13
|
+
dashboardsError: ApiError;
|
|
14
|
+
dashboardsLoading: boolean;
|
|
15
|
+
duplicateDashboard: (dashboardId: string, dashboard: DashboardCopyBody) => Promise<DashboardView>;
|
|
16
|
+
favoriteDashboard: (dashboardId: string, favoriteValue: boolean) => Promise<DashboardView>;
|
|
17
|
+
getCategories: () => Promise<AllCategoriesResponse>;
|
|
18
|
+
getDashboardHelpContent: (helpContentId: string) => Promise<string>;
|
|
19
|
+
platformConsoleUrl: string;
|
|
20
|
+
searchDashboards: (search: DashboardFilters) => Promise<DashboardView[]>;
|
|
21
|
+
setOverrideAccountId: (accountId: string) => void;
|
|
22
|
+
setToken: (token: string) => void;
|
|
23
|
+
updateDashboard: (dashboardId: string, dashboard: DashboardPatchBody, isSync?: boolean) => Promise<DashboardView>;
|
|
24
|
+
}
|
|
25
|
+
interface DashboardFilters {
|
|
26
|
+
authorFullname?: string;
|
|
27
|
+
authorId?: string;
|
|
28
|
+
biType?: string;
|
|
29
|
+
count?: number;
|
|
30
|
+
description?: string;
|
|
31
|
+
favorite?: boolean;
|
|
32
|
+
filter?: Array<string>;
|
|
33
|
+
id?: string;
|
|
34
|
+
isOotbDashboard?: boolean;
|
|
35
|
+
lifecycleState?: 'DRAFT' | 'PUBLISHED';
|
|
36
|
+
name?: string;
|
|
37
|
+
q?: string;
|
|
38
|
+
sort?: string;
|
|
39
|
+
start?: number;
|
|
40
|
+
targetApp?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare const DotMetadataApiProvider: ({ accountOverrideId, apiUrl, token, children, }: MetadataApiProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const useDotMetadataApiContext: () => DotMetadataApiContextProps;
|
|
44
|
+
export type AllCategories = AllCategoriesResponse;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ApiRequestOptions = {
|
|
2
|
+
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
3
|
+
readonly path: string;
|
|
4
|
+
readonly cookies?: Record<string, any>;
|
|
5
|
+
readonly headers?: Record<string, any>;
|
|
6
|
+
readonly query?: Record<string, any>;
|
|
7
|
+
readonly formData?: Record<string, any>;
|
|
8
|
+
readonly body?: any;
|
|
9
|
+
readonly mediaType?: string;
|
|
10
|
+
readonly responseHeader?: string;
|
|
11
|
+
readonly errors?: Record<number, string>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
3
|
+
type Headers = Record<string, string>;
|
|
4
|
+
type Config = {
|
|
5
|
+
BASE: string;
|
|
6
|
+
VERSION: string;
|
|
7
|
+
WITH_CREDENTIALS: boolean;
|
|
8
|
+
TOKEN?: string | Resolver<string>;
|
|
9
|
+
USERNAME?: string | Resolver<string>;
|
|
10
|
+
PASSWORD?: string | Resolver<string>;
|
|
11
|
+
HEADERS?: Headers | Resolver<Headers>;
|
|
12
|
+
ENCODE_PATH?: (path: string) => string;
|
|
13
|
+
};
|
|
14
|
+
export declare const OpenAPI: Config;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
import type { ApiResult } from './ApiResult';
|
|
3
|
+
/**
|
|
4
|
+
* Request using fetch client
|
|
5
|
+
* @param options The request options from the the service
|
|
6
|
+
* @returns ApiResult
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
export declare function request(options: ApiRequestOptions): Promise<ApiResult>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { ApiError } from './core/ApiError';
|
|
2
|
+
export { OpenAPI } from './core/OpenAPI';
|
|
3
|
+
export type { AllCategoriesResponse } from './models/AllCategoriesResponse';
|
|
4
|
+
export type { Author } from './models/Author';
|
|
5
|
+
export type { BiServerResponse } from './models/BiServerResponse';
|
|
6
|
+
export type { CategoriesResponse } from './models/CategoriesResponse';
|
|
7
|
+
export type { DashboardCopyBody } from './models/DashboardCopyBody';
|
|
8
|
+
export { DashboardCreateBody } from './models/DashboardCreateBody';
|
|
9
|
+
export { DashboardPatchBody } from './models/DashboardPatchBody';
|
|
10
|
+
export { DashboardPutBody } from './models/DashboardPutBody';
|
|
11
|
+
export { DashboardView } from './models/DashboardView';
|
|
12
|
+
export type { DashboardViewPagedResponse } from './models/DashboardViewPagedResponse';
|
|
13
|
+
export type { Entity } from './models/Entity';
|
|
14
|
+
export type { EntityAttribute } from './models/EntityAttribute';
|
|
15
|
+
export type { EntityAttributePagedResponse } from './models/EntityAttributePagedResponse';
|
|
16
|
+
export type { EntityAttributeRequest } from './models/EntityAttributeRequest';
|
|
17
|
+
export type { EntityClass } from './models/EntityClass';
|
|
18
|
+
export type { EntityClassPagedResponse } from './models/EntityClassPagedResponse';
|
|
19
|
+
export type { EntityPagedResponse } from './models/EntityPagedResponse';
|
|
20
|
+
export type { Error } from './models/Error';
|
|
21
|
+
export type { GuestTokenRequest } from './models/GuestTokenRequest';
|
|
22
|
+
export type { HealthCheckResponse } from './models/HealthCheckResponse';
|
|
23
|
+
export type { HelpContent } from './models/HelpContent';
|
|
24
|
+
export type { HelpContentCreateBody } from './models/HelpContentCreateBody';
|
|
25
|
+
export type { HelpContentPagedResponse } from './models/HelpContentPagedResponse';
|
|
26
|
+
export type { HelpContentPutBody } from './models/HelpContentPutBody';
|
|
27
|
+
export type { MetadataResponse } from './models/MetadataResponse';
|
|
28
|
+
export type { MSTRLoginTokenResponse } from './models/MSTRLoginTokenResponse';
|
|
29
|
+
export type { MSTRServerResponse } from './models/MSTRServerResponse';
|
|
30
|
+
export type { Origin } from './models/Origin';
|
|
31
|
+
export type { OriginInstance } from './models/OriginInstance';
|
|
32
|
+
export type { OriginInstancePagedResponse } from './models/OriginInstancePagedResponse';
|
|
33
|
+
export type { OriginPagedResponse } from './models/OriginPagedResponse';
|
|
34
|
+
export type { PaginationHeaders } from './models/PaginationHeaders';
|
|
35
|
+
export type { PaginationMetadata } from './models/PaginationMetadata';
|
|
36
|
+
export type { SSLoginTokenResponse } from './models/SSLoginTokenResponse';
|
|
37
|
+
export type { TenantInfo } from './models/TenantInfo';
|
|
38
|
+
export type { VersionResponse } from './models/VersionResponse';
|
|
39
|
+
export { BiService } from './services/BiService';
|
|
40
|
+
export { CategoriesService } from './services/CategoriesService';
|
|
41
|
+
export { DashboardsService } from './services/DashboardsService';
|
|
42
|
+
export { EntitiesService } from './services/EntitiesService';
|
|
43
|
+
export { EntityAttributesService } from './services/EntityAttributesService';
|
|
44
|
+
export { EntityClassService } from './services/EntityClassService';
|
|
45
|
+
export { HelpContentService } from './services/HelpContentService';
|
|
46
|
+
export { OriginInstancesService } from './services/OriginInstancesService';
|
|
47
|
+
export { OriginsService } from './services/OriginsService';
|
|
48
|
+
export { UtilityService } from './services/UtilityService';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type DashboardCopyBody = {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the dashboard to be copied.
|
|
4
|
+
*/
|
|
5
|
+
name?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Description of the dashboard.
|
|
8
|
+
*/
|
|
9
|
+
description?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* List of application instances associated with this dashboard.
|
|
12
|
+
*/
|
|
13
|
+
application_instances?: Array<string> | null;
|
|
14
|
+
/**
|
|
15
|
+
* List of categories associated with this dashboard.
|
|
16
|
+
*/
|
|
17
|
+
categories?: Array<string> | null;
|
|
18
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type DashboardCreateBody = {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the dashboard.
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* App types that can be targeted by the dashboard.
|
|
8
|
+
*/
|
|
9
|
+
target_apps: Array<'AGILITY' | 'RELEASE' | 'DEPLOY' | 'CONTINUOUSTEST' | 'TEAMFORGE'>;
|
|
10
|
+
/**
|
|
11
|
+
* Description of the dashboard.
|
|
12
|
+
*/
|
|
13
|
+
description?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* The state of the dashboard.
|
|
16
|
+
*/
|
|
17
|
+
lifecycle_state?: DashboardCreateBody.lifecycle_state | null;
|
|
18
|
+
/**
|
|
19
|
+
* Application instances associated with the dashboard.
|
|
20
|
+
*/
|
|
21
|
+
application_instances?: Array<string> | null;
|
|
22
|
+
/**
|
|
23
|
+
* Categories associated with the dashboard.
|
|
24
|
+
*/
|
|
25
|
+
categories?: Array<string> | null;
|
|
26
|
+
/**
|
|
27
|
+
* (Internal) BI type of the dashboard.
|
|
28
|
+
*/
|
|
29
|
+
bi_type?: DashboardCreateBody.bi_type | null;
|
|
30
|
+
/**
|
|
31
|
+
* (Internal) Whether the dashboard is 'Out-of-the-box'.
|
|
32
|
+
*/
|
|
33
|
+
is_ootb_dashboard?: boolean | null;
|
|
34
|
+
/**
|
|
35
|
+
* (Internal) Thumbnail representing dashboard. Base64 encoded SVG.
|
|
36
|
+
*/
|
|
37
|
+
thumbnail?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* (Internal) ID of the dashboard in the BI tool.
|
|
40
|
+
*/
|
|
41
|
+
external_id?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* (Internal) ID used to embed the dashboard from the BI tool. (superset only)
|
|
44
|
+
*/
|
|
45
|
+
external_embedding_id?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* (Internal) Dictionary of data from the BI tool, for configuration and embedding.
|
|
48
|
+
*/
|
|
49
|
+
external_object?: Record<string, any> | null;
|
|
50
|
+
/**
|
|
51
|
+
* (Internal) Dictionary of MSTR embed SDK props.
|
|
52
|
+
*/
|
|
53
|
+
embed_config?: Record<string, any> | null;
|
|
54
|
+
/**
|
|
55
|
+
* (Internal) Id of a help content definition to show for the dashboard.
|
|
56
|
+
*/
|
|
57
|
+
help_content_id?: string | null;
|
|
58
|
+
};
|
|
59
|
+
export declare namespace DashboardCreateBody {
|
|
60
|
+
/**
|
|
61
|
+
* The state of the dashboard.
|
|
62
|
+
*/
|
|
63
|
+
enum lifecycle_state {
|
|
64
|
+
DRAFT = "DRAFT",
|
|
65
|
+
PUBLISHED = "PUBLISHED"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* (Internal) BI type of the dashboard.
|
|
69
|
+
*/
|
|
70
|
+
enum bi_type {
|
|
71
|
+
SUPERSET = "SUPERSET",
|
|
72
|
+
MICROSTRATEGY = "MICROSTRATEGY"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type DashboardPatchBody = {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the dashboard.
|
|
4
|
+
*/
|
|
5
|
+
name?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Description of the dashboard.
|
|
8
|
+
*/
|
|
9
|
+
description?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The state of the dashboard.
|
|
12
|
+
*/
|
|
13
|
+
lifecycle_state?: DashboardPatchBody.lifecycle_state | null;
|
|
14
|
+
/**
|
|
15
|
+
* Application instances associated with the dashboard.
|
|
16
|
+
*/
|
|
17
|
+
application_instances?: Array<string> | null;
|
|
18
|
+
/**
|
|
19
|
+
* Categories associated with the dashboard.
|
|
20
|
+
*/
|
|
21
|
+
categories?: Array<string> | null;
|
|
22
|
+
/**
|
|
23
|
+
* App types that can be targeted by the dashboard.
|
|
24
|
+
*/
|
|
25
|
+
target_apps?: Array<'AGILITY' | 'RELEASE' | 'DEPLOY' | 'CONTINUOUSTEST' | 'TEAMFORGE'> | null;
|
|
26
|
+
/**
|
|
27
|
+
* (Internal) BI type of the dashboard.
|
|
28
|
+
*/
|
|
29
|
+
bi_type?: DashboardPatchBody.bi_type | null;
|
|
30
|
+
/**
|
|
31
|
+
* (Internal) Whether the dashboard is 'Out-of-the-box'.
|
|
32
|
+
*/
|
|
33
|
+
is_ootb_dashboard?: boolean | null;
|
|
34
|
+
/**
|
|
35
|
+
* (Internal) Thumbnail representing dashboard. Base64 encoded SVG.
|
|
36
|
+
*/
|
|
37
|
+
thumbnail?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* (Internal) ID of the dashboard in the BI tool.
|
|
40
|
+
*/
|
|
41
|
+
external_id?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* (Internal) ID used to embed the dashboard from the BI tool. (superset only)
|
|
44
|
+
*/
|
|
45
|
+
external_embedding_id?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* (Internal) Dictionary of data from the BI tool, for configuration and embedding.
|
|
48
|
+
*/
|
|
49
|
+
external_object?: Record<string, any> | null;
|
|
50
|
+
/**
|
|
51
|
+
* (Internal) Dictionary of MSTR embed SDK props.
|
|
52
|
+
*/
|
|
53
|
+
embed_config?: Record<string, any> | null;
|
|
54
|
+
/**
|
|
55
|
+
* (Internal) Id of a help content definition to show for the dashboard.
|
|
56
|
+
*/
|
|
57
|
+
help_content_id?: string | null;
|
|
58
|
+
};
|
|
59
|
+
export declare namespace DashboardPatchBody {
|
|
60
|
+
/**
|
|
61
|
+
* The state of the dashboard.
|
|
62
|
+
*/
|
|
63
|
+
enum lifecycle_state {
|
|
64
|
+
DRAFT = "DRAFT",
|
|
65
|
+
PUBLISHED = "PUBLISHED"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* (Internal) BI type of the dashboard.
|
|
69
|
+
*/
|
|
70
|
+
enum bi_type {
|
|
71
|
+
SUPERSET = "SUPERSET",
|
|
72
|
+
MICROSTRATEGY = "MICROSTRATEGY"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type DashboardPutBody = {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the dashboard.
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* Description of the dashboard.
|
|
8
|
+
*/
|
|
9
|
+
description: string;
|
|
10
|
+
/**
|
|
11
|
+
* The state of the dashboard.
|
|
12
|
+
*/
|
|
13
|
+
lifecycle_state: DashboardPutBody.lifecycle_state;
|
|
14
|
+
/**
|
|
15
|
+
* Application instances associated with the dashboard.
|
|
16
|
+
*/
|
|
17
|
+
application_instances: Array<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Categories associated with the dashboard.
|
|
20
|
+
*/
|
|
21
|
+
categories: Array<string>;
|
|
22
|
+
/**
|
|
23
|
+
* App types that can be targeted by the dashboard.
|
|
24
|
+
*/
|
|
25
|
+
target_apps: Array<'AGILITY' | 'RELEASE' | 'DEPLOY' | 'CONTINUOUSTEST' | 'TEAMFORGE'>;
|
|
26
|
+
/**
|
|
27
|
+
* (Internal) BI type of the dashboard.
|
|
28
|
+
*/
|
|
29
|
+
bi_type?: DashboardPutBody.bi_type | null;
|
|
30
|
+
/**
|
|
31
|
+
* (Internal) Whether the dashboard is 'Out-of-the-box'.
|
|
32
|
+
*/
|
|
33
|
+
is_ootb_dashboard?: boolean | null;
|
|
34
|
+
/**
|
|
35
|
+
* (Internal) Thumbnail representing dashboard. Base64 encoded SVG.
|
|
36
|
+
*/
|
|
37
|
+
thumbnail?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* (Internal) ID of the dashboard in the BI tool.
|
|
40
|
+
*/
|
|
41
|
+
external_id?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* (Internal) ID used to embed the dashboard from the BI tool. (superset only)
|
|
44
|
+
*/
|
|
45
|
+
external_embedding_id?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* (Internal) Dictionary of data from the BI tool, for configuration and embedding.
|
|
48
|
+
*/
|
|
49
|
+
external_object?: Record<string, any> | null;
|
|
50
|
+
/**
|
|
51
|
+
* (Internal) Dictionary of MSTR embed SDK props.
|
|
52
|
+
*/
|
|
53
|
+
embed_config?: Record<string, any> | null;
|
|
54
|
+
/**
|
|
55
|
+
* (Internal) Id of a help content definition to show for the dashboard.
|
|
56
|
+
*/
|
|
57
|
+
help_content_id?: string | null;
|
|
58
|
+
};
|
|
59
|
+
export declare namespace DashboardPutBody {
|
|
60
|
+
/**
|
|
61
|
+
* The state of the dashboard.
|
|
62
|
+
*/
|
|
63
|
+
enum lifecycle_state {
|
|
64
|
+
DRAFT = "DRAFT",
|
|
65
|
+
PUBLISHED = "PUBLISHED"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* (Internal) BI type of the dashboard.
|
|
69
|
+
*/
|
|
70
|
+
enum bi_type {
|
|
71
|
+
SUPERSET = "SUPERSET",
|
|
72
|
+
MICROSTRATEGY = "MICROSTRATEGY"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export type DashboardView = {
|
|
2
|
+
/**
|
|
3
|
+
* The id of the dashboard.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The full name of the dashboard author.
|
|
8
|
+
*/
|
|
9
|
+
author_fullname: string;
|
|
10
|
+
/**
|
|
11
|
+
* The platform id of the dashboard author.
|
|
12
|
+
*/
|
|
13
|
+
author_id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the dashboard.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* App types that can be targeted by the dashboard.
|
|
20
|
+
*/
|
|
21
|
+
target_apps: Array<'AGILITY' | 'RELEASE' | 'DEPLOY' | 'CONTINUOUSTEST' | 'TEAMFORGE'>;
|
|
22
|
+
/**
|
|
23
|
+
* Description of the dashboard.
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
/**
|
|
27
|
+
* The state of the dashboard.
|
|
28
|
+
*/
|
|
29
|
+
lifecycle_state: DashboardView.lifecycle_state;
|
|
30
|
+
/**
|
|
31
|
+
* Application instances associated with the dashboard.
|
|
32
|
+
*/
|
|
33
|
+
application_instances: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Categories associated with the dashboard.
|
|
36
|
+
*/
|
|
37
|
+
categories: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* BI type of the dashboard.
|
|
40
|
+
*/
|
|
41
|
+
bi_type: DashboardView.bi_type;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the dashboard is 'Out-of-the-box'.
|
|
44
|
+
*/
|
|
45
|
+
is_ootb_dashboard: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Thumbnail representing dashboard. Base64 encoded SVG.
|
|
48
|
+
*/
|
|
49
|
+
thumbnail: string;
|
|
50
|
+
/**
|
|
51
|
+
* ID of the dashboard in the BI tool.
|
|
52
|
+
*/
|
|
53
|
+
external_id: string;
|
|
54
|
+
/**
|
|
55
|
+
* ID used to embed the dashboard from the BI tool. (superset only)
|
|
56
|
+
*/
|
|
57
|
+
external_embedding_id: string;
|
|
58
|
+
/**
|
|
59
|
+
* Dictionary of data from the BI tool, for configuration and embedding.
|
|
60
|
+
*/
|
|
61
|
+
external_object: Record<string, any>;
|
|
62
|
+
/**
|
|
63
|
+
* Dictionary of MSTR embed SDK props.
|
|
64
|
+
*/
|
|
65
|
+
embed_config: Record<string, any>;
|
|
66
|
+
/**
|
|
67
|
+
* Id of a help content definition to show for the dashboard.
|
|
68
|
+
*/
|
|
69
|
+
help_content_id: string;
|
|
70
|
+
/**
|
|
71
|
+
* The url of the underlying BI server.
|
|
72
|
+
*/
|
|
73
|
+
server_url: string;
|
|
74
|
+
/**
|
|
75
|
+
* The url of the dashboard.
|
|
76
|
+
*/
|
|
77
|
+
dashboard_url: string;
|
|
78
|
+
/**
|
|
79
|
+
* Filter configurations for the dashboard.
|
|
80
|
+
*/
|
|
81
|
+
filter_configuration: Array<any>;
|
|
82
|
+
/**
|
|
83
|
+
* The date and time that the dashboard was created.
|
|
84
|
+
*/
|
|
85
|
+
created_dt?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the dashboard is marked as a favorite by this user.
|
|
88
|
+
*/
|
|
89
|
+
favorite: boolean;
|
|
90
|
+
};
|
|
91
|
+
export declare namespace DashboardView {
|
|
92
|
+
/**
|
|
93
|
+
* The state of the dashboard.
|
|
94
|
+
*/
|
|
95
|
+
enum lifecycle_state {
|
|
96
|
+
DRAFT = "DRAFT",
|
|
97
|
+
PUBLISHED = "PUBLISHED"
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* BI type of the dashboard.
|
|
101
|
+
*/
|
|
102
|
+
enum bi_type {
|
|
103
|
+
SUPERSET = "SUPERSET",
|
|
104
|
+
MICROSTRATEGY = "MICROSTRATEGY"
|
|
105
|
+
}
|
|
106
|
+
}
|