@databrainhq/plugin 0.11.38 → 0.12.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/dist/components/ExternalMetricForm/index.d.ts +2 -2
- package/dist/components/MetricCreation/MetricCreation.d.ts +1 -1
- package/dist/components/MetricList/MetricList.d.ts +1 -2
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +1 -1
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +1 -1
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +1 -1
- package/dist/components/MetricList/components/index.d.ts +0 -1
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/consts/api.d.ts +37 -0
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useApplyAdminTheme.d.ts +1 -2
- package/dist/hooks/useDashboardContext.d.ts +4 -4
- package/dist/hooks/useDownloadRawCsv.d.ts +6 -44
- package/dist/hooks/useEmbeddedMetric.d.ts +2 -3
- package/dist/hooks/useExternalMetric.d.ts +14 -3
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +9 -11
- package/dist/hooks/useMetricCard.d.ts +1 -2
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +4 -4
- package/dist/hooks/useScheduleEmail.d.ts +2 -11
- package/dist/queries/externalDashboard.mutation.d.ts +43 -0
- package/dist/queries/externalDashboard.query.d.ts +13 -0
- package/dist/queries/metric.mutation.d.ts +13 -0
- package/dist/queries/metric.query.d.ts +7 -0
- package/dist/types/app.d.ts +5 -0
- package/dist/types/metricCreate.d.ts +1 -1
- package/dist/types/queryTypes.d.ts +239 -0
- package/dist/utils/fetcher.d.ts +10 -1
- package/dist/utils/getChartAttributes.d.ts +2 -1
- package/dist/webcomponents.es.js +32083 -32473
- package/dist/webcomponents.umd.js +241 -575
- package/package.json +1 -2
- package/dist/components/MetricList/components/MetricCards/SingleValueCard.d.ts +0 -3
- package/dist/helpers/timesAgo.d.ts +0 -2
- package/dist/hooks/useEmbeddedDashboard.d.ts +0 -67
- package/dist/hooks/useGenerateEmbeddedMetric.d.ts +0 -15
- package/dist/utils/generated/graphql.d.ts +0 -4514
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import { DashboardType } from '@/types/app';
|
|
3
|
+
import { DashboardType, FloatingDropDownOption } from '@/types/app';
|
|
4
4
|
type ExternalMetricProps = {
|
|
5
5
|
onSubmit: (values: FieldValues) => void;
|
|
6
6
|
defaultValues?: FieldValues;
|
|
@@ -8,7 +8,7 @@ type ExternalMetricProps = {
|
|
|
8
8
|
isEmbedded?: boolean;
|
|
9
9
|
dashboardIds: DashboardType['id'][];
|
|
10
10
|
onDashboardChange: (selected: DashboardType['id'][]) => void;
|
|
11
|
-
|
|
11
|
+
options: FloatingDropDownOption[];
|
|
12
12
|
error?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const ExternalMetricForm: React.FC<ExternalMetricProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EmbeddedMetricCreationProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const EmbeddedMetricCreation: ({ clientId, companyId, isLiveMode, externalDashboardId, userProvidedDashboardId, chartColors, isShowMetricCreateModal, setShowMetricCreateModal, metric, metricData,
|
|
3
|
+
export declare const EmbeddedMetricCreation: ({ clientId, companyId, isLiveMode, externalDashboardId, userProvidedDashboardId, chartColors, isShowMetricCreateModal, setShowMetricCreateModal, metric, metricData, }: EmbeddedMetricCreationProps) => React.JSX.Element;
|
|
@@ -3,7 +3,6 @@ import { Layout } from 'react-grid-layout';
|
|
|
3
3
|
import { MetricCardProps } from './components';
|
|
4
4
|
import { ClientType } from '@/types/app';
|
|
5
5
|
import { ThemeType } from '@/utils/theme';
|
|
6
|
-
import { EmbeddedDashboardMetricsQuery } from '@/utils/generated/graphql';
|
|
7
6
|
export declare const GridLayout: React.ComponentClass<import("react-grid-layout").ResponsiveProps & import("react-grid-layout").WidthProviderProps, any>;
|
|
8
7
|
export type ExternalMetricListProps = {
|
|
9
8
|
chartColors?: string[];
|
|
@@ -17,7 +16,7 @@ export type ExternalMetricListProps = {
|
|
|
17
16
|
breakpoint: ThemeType['breakpoint'];
|
|
18
17
|
layoutCols: ThemeType['metricLayoutCols'];
|
|
19
18
|
adminLayout: Layout[];
|
|
20
|
-
externalDashboardMetrics?:
|
|
19
|
+
externalDashboardMetrics?: any;
|
|
21
20
|
params?: any;
|
|
22
21
|
appFilters?: any;
|
|
23
22
|
companyTenancyType: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExternalMetrics } from '@/
|
|
2
|
+
import { ExternalMetrics } from '@/types/queryTypes';
|
|
3
3
|
import { ClientType } from '@/types/app';
|
|
4
4
|
import { FilterFieldType } from '@/components/FilterField';
|
|
5
5
|
export type MetricCardProps = {
|
|
@@ -3,6 +3,5 @@ export * from './DownloadRawCsvModal';
|
|
|
3
3
|
export * from './LayoutAlert';
|
|
4
4
|
export * from './TableViewModal';
|
|
5
5
|
export * from './MetricCards/MetricCard';
|
|
6
|
-
export * from './MetricCards/SingleValueCard';
|
|
7
6
|
export * from './MetricCards/NoDataLoading';
|
|
8
7
|
export * from './FullScreenView';
|
|
@@ -20,6 +20,7 @@ type Props = {
|
|
|
20
20
|
totalRecords: number;
|
|
21
21
|
};
|
|
22
22
|
setChartSettings?: (value: React.SetStateAction<ChartSettingsType>) => void;
|
|
23
|
+
isFullScreen?: boolean;
|
|
23
24
|
};
|
|
24
|
-
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, }: Props) => React.JSX.Element;
|
|
25
|
+
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isFullScreen, }: Props) => React.JSX.Element;
|
|
25
26
|
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const DASHBOARD_PATH = "/dashboard";
|
|
2
|
+
export declare const METRIC_PATH = "/metric";
|
|
3
|
+
export declare const DASHBOARD_DATA_QUERY = "dashboardData";
|
|
4
|
+
export declare const DASHBOARD_EMBEDDED_METRIC_PATH: string;
|
|
5
|
+
export declare const DASHBOARD_EMBEDDED_METRIC_QUERY = "embeddedMetric";
|
|
6
|
+
export declare const DASHBOARD_LAYOUT_PATH: string;
|
|
7
|
+
export declare const DASHBOARD_LAYOUT_QUERY = "dashboardLayout";
|
|
8
|
+
export declare const DASHBOARD_SCHEDULED_REPORT_PATH: string;
|
|
9
|
+
export declare const DASHBOARD_SCHEDULED_REPORT_QUERY = "dashboardScheduledReport";
|
|
10
|
+
export declare const DASHBOARD_SAVE_LAYOUT_PATH: string;
|
|
11
|
+
export declare const DASHBOARD_SAVE_LAYOUT_MUTATION = "saveLayout";
|
|
12
|
+
export declare const DASHBOARD_SAVE_SCHEDULED_REPORT_PATH: string;
|
|
13
|
+
export declare const DASHBOARD_SAVE_SCHEDULED_REPORT_MUTATION = "saveScheduleReport";
|
|
14
|
+
export declare const DASHBOARD_DELETE_SCHEDULED_REPORT_PATH: string;
|
|
15
|
+
export declare const DASHBOARD_DELETE_SCHEDULED_REPORT_MUTATION = "deleteScheduleReport";
|
|
16
|
+
export declare const DASHBOARD_CREATE_METRIC_PATH: string;
|
|
17
|
+
export declare const DASHBOARD_CREATE_METRIC_MUTATION = "createMetric";
|
|
18
|
+
export declare const DASHBOARD_UPDATE_METRIC_PATH: string;
|
|
19
|
+
export declare const DASHBOARD_UPDATE_METRIC_MUTATION = "updateMetric";
|
|
20
|
+
export declare const DASHBOARD_UPDATE_ADMIN_METRIC_PATH: string;
|
|
21
|
+
export declare const DASHBOARD_UPDATE_ADMIN_METRIC_MUTATION = "updateAdminMetric";
|
|
22
|
+
export declare const DASHBOARD_GENERATE_METRIC_PATH: string;
|
|
23
|
+
export declare const DASHBOARD_GENERATE_METRIC_MUTATION = "generateMetric";
|
|
24
|
+
export declare const DASHBOARD_PREVIEW_TABLE_PATH: string;
|
|
25
|
+
export declare const DASHBOARD_PREVIEW_TABLE_MUTATION = "previewTable";
|
|
26
|
+
export declare const METRIC_QUERY_PATH: string;
|
|
27
|
+
export declare const METRIC_QUERY_QUERY = "query";
|
|
28
|
+
export declare const METRIC_RAW_DOWNLOAD_SETTINGS_PATH: string;
|
|
29
|
+
export declare const METRIC_RAW_DOWNLOAD_SETTINGS_QUERY = "rawDownloadSettings";
|
|
30
|
+
export declare const METRIC_COLUMN_PATH: string;
|
|
31
|
+
export declare const METRIC_COLUMN_MUTATION = "column";
|
|
32
|
+
export declare const METRIC_UNDERLYING_DATA_PATH: string;
|
|
33
|
+
export declare const METRIC_UNDERLYING_DATA_MUTATION = "underlyingData";
|
|
34
|
+
export declare const METRIC_SHARE_CSV_PATH: string;
|
|
35
|
+
export declare const METRIC_SHARE_CSV_MUTATION = "invokeShareCsv";
|
|
36
|
+
export declare const METRIC_MARK_ARCHIVED_PATH: string;
|
|
37
|
+
export declare const METRIC_MARK_ARCHIVED_MUTATION = "markArchived";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export * from './useEmbeddedDashboard';
|
|
2
1
|
export * from './useExternalMetric';
|
|
3
2
|
export * from './useGenerateDatasetMetrics';
|
|
4
|
-
export * from './useGenerateEmbeddedMetric';
|
|
5
3
|
export * from './useOutsideAlerter';
|
|
6
4
|
export * from './useApplyAdminTheme';
|
|
7
5
|
export * from './useClientDashboardLayout';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useApplyAdminTheme: (adminTheme?: Themes) => void;
|
|
1
|
+
export declare const useApplyAdminTheme: (adminTheme?: any) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExternalDashboardMetrics, ExternalDashboards, Themes } from '@/utils/generated/graphql';
|
|
3
2
|
interface DashboardContextType {
|
|
4
3
|
isLoading: boolean | undefined;
|
|
5
4
|
token: string | undefined;
|
|
@@ -8,8 +7,8 @@ interface DashboardContextType {
|
|
|
8
7
|
companyId: string;
|
|
9
8
|
sharingSettingsId: string | undefined;
|
|
10
9
|
clientId: string | undefined;
|
|
11
|
-
externalDashboardMetrics:
|
|
12
|
-
externalDashboard:
|
|
10
|
+
externalDashboardMetrics: any[];
|
|
11
|
+
externalDashboard: any;
|
|
13
12
|
rlsSettings: any | undefined;
|
|
14
13
|
appFilters: any | undefined;
|
|
15
14
|
companyTenancyType: any;
|
|
@@ -18,7 +17,8 @@ interface DashboardContextType {
|
|
|
18
17
|
isAllowedToUpdateMetrics: boolean | undefined;
|
|
19
18
|
isAllowedToChangeLayout: boolean | undefined;
|
|
20
19
|
workspace: any;
|
|
21
|
-
adminTheme:
|
|
20
|
+
adminTheme: any;
|
|
21
|
+
clientSubsetData?: any | undefined;
|
|
22
22
|
} | undefined;
|
|
23
23
|
}
|
|
24
24
|
export declare const DashboardContext: import("react").Context<DashboardContextType>;
|
|
@@ -1,59 +1,21 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
3
2
|
declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, filterValues, metricItem, }: {
|
|
4
3
|
onCloseModal: (value: boolean) => void;
|
|
5
|
-
metricItem?:
|
|
4
|
+
metricItem?: Record<string, any> | undefined;
|
|
6
5
|
filterValues?: Record<string, string> | undefined;
|
|
7
6
|
sharingSettingsId?: string | undefined;
|
|
8
7
|
}) => {
|
|
9
|
-
|
|
10
|
-
downloadCsvError: string;
|
|
11
|
-
onSubmitDownloadCsv: ({ companyId, sqlQuery, values, clientName, tenancyType, metricName, workspaceId, }: {
|
|
8
|
+
onSumbitSendCsvUrl: ({ values, clientName, tenancyType, }: {
|
|
12
9
|
values: FieldValues;
|
|
13
|
-
sqlQuery: string;
|
|
14
|
-
companyId: string;
|
|
15
10
|
clientName?: string | undefined;
|
|
16
11
|
tenancyType?: string | undefined;
|
|
17
|
-
metricName?: string | undefined;
|
|
18
|
-
workspaceId?: string | undefined;
|
|
19
12
|
}) => void;
|
|
13
|
+
isDisableDownloadSettings: boolean;
|
|
14
|
+
downloadCsvError: string;
|
|
20
15
|
handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
|
|
16
|
+
isLoading: boolean;
|
|
21
17
|
register: import("react-hook-form").UseFormRegister<FieldValues>;
|
|
22
|
-
csvDownloadUrls: {
|
|
23
|
-
urls: string[];
|
|
24
|
-
lastUpdatedAt: string;
|
|
25
|
-
isExpired: boolean;
|
|
26
|
-
error: string | null | undefined;
|
|
27
|
-
expireUrlIn: number;
|
|
28
|
-
status: string;
|
|
29
|
-
} | {
|
|
30
|
-
urls: never[];
|
|
31
|
-
lastUpdatedAt: number;
|
|
32
|
-
isExpired: boolean;
|
|
33
|
-
error: null;
|
|
34
|
-
expireUrlIn: number;
|
|
35
|
-
status: string;
|
|
36
|
-
};
|
|
37
|
-
handleDownload: (url: string) => void;
|
|
38
|
-
csvDownloadUrlError: string;
|
|
39
|
-
saveRawCsvDetails: ({ clientName, tenancyType, expirationMinutes, onSuccess, }: {
|
|
40
|
-
onSuccess: () => void;
|
|
41
|
-
expirationMinutes: number;
|
|
42
|
-
clientName?: string | undefined;
|
|
43
|
-
tenancyType?: string | undefined;
|
|
44
|
-
}) => void;
|
|
45
|
-
onRequestToDownload: ({ clientName, tenancyType, requestStatus, }: {
|
|
46
|
-
requestStatus: string;
|
|
47
|
-
clientName?: string | undefined;
|
|
48
|
-
tenancyType?: string | undefined;
|
|
49
|
-
}) => void;
|
|
50
|
-
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
51
18
|
control: import("react-hook-form").Control<FieldValues, any>;
|
|
52
|
-
|
|
53
|
-
values: FieldValues;
|
|
54
|
-
clientName?: string | undefined;
|
|
55
|
-
tenancyType?: string | undefined;
|
|
56
|
-
}) => void;
|
|
57
|
-
isDisableDownloadSettings: boolean;
|
|
19
|
+
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
58
20
|
};
|
|
59
21
|
export default useDownloadRawCsv;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
2
1
|
export interface UseEmbeddedMetricProps {
|
|
3
2
|
token: string;
|
|
4
3
|
metricId: string;
|
|
5
4
|
}
|
|
6
5
|
export declare const useEmbeddedMetric: ({ token, metricId, }: UseEmbeddedMetricProps) => {
|
|
7
|
-
externalMetric:
|
|
6
|
+
externalMetric: any;
|
|
8
7
|
sharingSettingsId: string;
|
|
9
8
|
adminColors: string[] | null;
|
|
10
9
|
companyId: string;
|
|
@@ -15,5 +14,5 @@ export declare const useEmbeddedMetric: ({ token, metricId, }: UseEmbeddedMetric
|
|
|
15
14
|
} | undefined;
|
|
16
15
|
tenancyLevel: any;
|
|
17
16
|
isLoading: boolean;
|
|
18
|
-
errorMsg:
|
|
17
|
+
errorMsg: any;
|
|
19
18
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
3
2
|
import { DashboardType, GroupBy, RlsFilterObjectType, SelectedColumns, ChartSettingsType } from '@/types/app';
|
|
4
3
|
import { DatasetSettings } from '@/types';
|
|
5
4
|
type Params = {
|
|
@@ -23,13 +22,25 @@ type Params = {
|
|
|
23
22
|
isEnableGroupBy: boolean;
|
|
24
23
|
selectedGroupBy: string[];
|
|
25
24
|
groupBy: GroupBy | undefined;
|
|
26
|
-
metric?:
|
|
25
|
+
metric?: Record<string, any>;
|
|
27
26
|
datasetMetricSettings?: DatasetSettings;
|
|
28
27
|
};
|
|
29
|
-
export declare const useExternalMetric: ({ onSuccess, companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, chartSettings, clientId, companyId, isLiveMode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy,
|
|
28
|
+
export declare const useExternalMetric: ({ onSuccess, companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, chartSettings, clientId, companyId, isLiveMode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, metric, datasetMetricSettings, }: Params) => {
|
|
30
29
|
createExternalMetric: (data: FieldValues) => void;
|
|
31
30
|
updateExternalMetric: (data: FieldValues) => void;
|
|
32
31
|
error: string;
|
|
33
32
|
isLoading: boolean;
|
|
33
|
+
clientSubsetData: any;
|
|
34
|
+
previewTable: import("react-query").UseMutateFunction<{
|
|
35
|
+
data: unknown;
|
|
36
|
+
}, unknown, {
|
|
37
|
+
data: import("../types/queryTypes").UsePreviewTableMutationInputType;
|
|
38
|
+
token: string;
|
|
39
|
+
}, unknown>;
|
|
40
|
+
token: string | undefined;
|
|
41
|
+
dashboardOptions: {
|
|
42
|
+
value: any;
|
|
43
|
+
label: any;
|
|
44
|
+
}[];
|
|
34
45
|
};
|
|
35
46
|
export {};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
export declare const useGenerateDatasetMetrics: () => {
|
|
2
|
-
generateDatasetMetric: import("react-query").UseMutateFunction<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
generateDatasetMetric: import("react-query").UseMutateFunction<{
|
|
3
|
+
data: unknown;
|
|
4
|
+
}, unknown, {
|
|
5
|
+
data: import("../types/queryTypes").UseGenerateMetricMutationInputType;
|
|
6
|
+
token: string;
|
|
7
|
+
}, unknown>;
|
|
7
8
|
isGeneratingDataset: boolean;
|
|
8
9
|
generateError: unknown;
|
|
9
|
-
fetchColumnValues: import("react-query").UseMutateFunction<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
wId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
13
|
-
filter?: any;
|
|
14
|
-
}>, unknown>;
|
|
10
|
+
fetchColumnValues: import("react-query").UseMutateFunction<{
|
|
11
|
+
data: unknown;
|
|
12
|
+
}, unknown, import("../types/queryTypes").UseMetricColumnMutationInputType, unknown>;
|
|
15
13
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChartSettingsType, FloatingDropDownOption, RlsCondition, DatasetSettings } from '@/types';
|
|
3
|
-
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
4
3
|
import { MetricCardProps } from '@/components';
|
|
5
4
|
type UseMetricCardProps = {
|
|
6
|
-
metric:
|
|
5
|
+
metric: Record<string, any>;
|
|
7
6
|
chartSettings: ChartSettingsType;
|
|
8
7
|
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
9
8
|
clientId: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ExternalDashboardMetrics, ExternalDashboards, Themes } from '@/utils/generated/graphql';
|
|
2
1
|
declare const useNewEmbeddedDashboard: ({ token, dashboardId, }: {
|
|
3
2
|
token: string;
|
|
4
3
|
dashboardId?: string | undefined;
|
|
@@ -6,8 +5,8 @@ declare const useNewEmbeddedDashboard: ({ token, dashboardId, }: {
|
|
|
6
5
|
isLoading: boolean;
|
|
7
6
|
error: string | undefined;
|
|
8
7
|
data: {
|
|
9
|
-
externalDashboard:
|
|
10
|
-
externalDashboardMetrics:
|
|
8
|
+
externalDashboard: any;
|
|
9
|
+
externalDashboardMetrics: any;
|
|
11
10
|
isAllowedToChangeLayout: boolean;
|
|
12
11
|
isAllowedToCreateMetrics: boolean;
|
|
13
12
|
isAllowedToDeleteMetrics: boolean;
|
|
@@ -18,8 +17,9 @@ declare const useNewEmbeddedDashboard: ({ token, dashboardId, }: {
|
|
|
18
17
|
rlsSettings: any;
|
|
19
18
|
appFilters: any;
|
|
20
19
|
sharingSettingsId: string;
|
|
21
|
-
adminTheme:
|
|
20
|
+
adminTheme: any;
|
|
22
21
|
companyTenancyType: string;
|
|
22
|
+
clientSubsetData: import("@/types/queryTypes").ClientSubsetData | undefined;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
export default useNewEmbeddedDashboard;
|
|
@@ -14,23 +14,14 @@ declare const useScheduleEmail: ({ onCancel }: Params) => {
|
|
|
14
14
|
dashboardName: string;
|
|
15
15
|
chartOptions: {
|
|
16
16
|
value: any;
|
|
17
|
-
label:
|
|
17
|
+
label: any;
|
|
18
18
|
}[];
|
|
19
19
|
onSave: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
isSuccess: boolean;
|
|
22
22
|
error: string;
|
|
23
23
|
isLoadingData: boolean;
|
|
24
|
-
scheduleReportConfig:
|
|
25
|
-
__typename?: "scheduleEmailReports" | undefined;
|
|
26
|
-
externalDashboardId: any;
|
|
27
|
-
guestToken: any;
|
|
28
|
-
nextScheduledAt: string;
|
|
29
|
-
sharingSettingsId: any;
|
|
30
|
-
subject: string;
|
|
31
|
-
timeConfigurations: any;
|
|
32
|
-
id: any;
|
|
33
|
-
} | undefined;
|
|
24
|
+
scheduleReportConfig: any;
|
|
34
25
|
onDelete: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
|
|
35
26
|
isDeleted: boolean;
|
|
36
27
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseCreateMetricMutationInputType, UseDeleteDashboardScheduleReportMutationInputType, UseGenerateMetricMutationInputType, UsePreviewTableMutationInputType, UseSaveDashboardLayoutMutationInputType, UseSaveDashboardScheduleReportMutationInputType, UseUpdateAdminMetricMutationInputType, UseUpdateMetricMutationInputType } from '@/types/queryTypes';
|
|
2
|
+
export declare const useSaveDashboardLayoutMutation: () => import("react-query").UseMutationResult<{
|
|
3
|
+
data: unknown;
|
|
4
|
+
}, unknown, UseSaveDashboardLayoutMutationInputType, unknown>;
|
|
5
|
+
export declare const useSaveDashboardScheduleReportMutation: () => import("react-query").UseMutationResult<{
|
|
6
|
+
data: unknown;
|
|
7
|
+
}, unknown, {
|
|
8
|
+
data: UseSaveDashboardScheduleReportMutationInputType;
|
|
9
|
+
token: string;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
export declare const useDeleteDashboardScheduleReportMutation: () => import("react-query").UseMutationResult<{
|
|
12
|
+
data: unknown;
|
|
13
|
+
}, unknown, UseDeleteDashboardScheduleReportMutationInputType, unknown>;
|
|
14
|
+
export declare const useCreateMetricMutation: () => import("react-query").UseMutationResult<{
|
|
15
|
+
data: unknown;
|
|
16
|
+
}, unknown, {
|
|
17
|
+
data: UseCreateMetricMutationInputType;
|
|
18
|
+
token: string;
|
|
19
|
+
}, unknown>;
|
|
20
|
+
export declare const useUpdateMetricMutation: () => import("react-query").UseMutationResult<{
|
|
21
|
+
data: unknown;
|
|
22
|
+
}, unknown, {
|
|
23
|
+
data: UseUpdateMetricMutationInputType;
|
|
24
|
+
token: string;
|
|
25
|
+
}, unknown>;
|
|
26
|
+
export declare const useUpdateAdminMetricMutation: () => import("react-query").UseMutationResult<{
|
|
27
|
+
data: unknown;
|
|
28
|
+
}, unknown, {
|
|
29
|
+
data: UseUpdateAdminMetricMutationInputType;
|
|
30
|
+
token: string;
|
|
31
|
+
}, unknown>;
|
|
32
|
+
export declare const useGenerateMetricMutation: () => import("react-query").UseMutationResult<{
|
|
33
|
+
data: unknown;
|
|
34
|
+
}, unknown, {
|
|
35
|
+
data: UseGenerateMetricMutationInputType;
|
|
36
|
+
token: string;
|
|
37
|
+
}, unknown>;
|
|
38
|
+
export declare const usePreviewTableMutation: () => import("react-query").UseMutationResult<{
|
|
39
|
+
data: unknown;
|
|
40
|
+
}, unknown, {
|
|
41
|
+
data: UsePreviewTableMutationInputType;
|
|
42
|
+
token: string;
|
|
43
|
+
}, unknown>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UseDashboardDataQueryInputType } from '@/types/queryTypes';
|
|
2
|
+
export declare const useDashboardDataQuery: ({ token, dashboardId, }: UseDashboardDataQueryInputType) => import("react-query").UseQueryResult<{
|
|
3
|
+
data: unknown;
|
|
4
|
+
}, unknown>;
|
|
5
|
+
export declare const useDashboardLayoutQuery: (dashboardId: string, clientId: string) => import("react-query").UseQueryResult<{
|
|
6
|
+
data: unknown;
|
|
7
|
+
}, unknown>;
|
|
8
|
+
export declare const useDashboardScheduledReportQuery: (token: string) => import("react-query").UseQueryResult<{
|
|
9
|
+
data: unknown;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
export declare const useEmbeddedMetricQuery: (token: string, id: string) => import("react-query").UseQueryResult<{
|
|
12
|
+
data: unknown;
|
|
13
|
+
}, unknown>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UseMetricColumnMutationInputType, UseMetricUnderlyingDataMutationInputType, UseMetricShareCsvMutationInputType, UseMarkArchivedMutationInputType } from '@/types/queryTypes';
|
|
2
|
+
export declare const useMetricColumnMutation: () => import("react-query").UseMutationResult<{
|
|
3
|
+
data: unknown;
|
|
4
|
+
}, unknown, UseMetricColumnMutationInputType, unknown>;
|
|
5
|
+
export declare const useMetricUnderlyingDataMutation: () => import("react-query").UseMutationResult<{
|
|
6
|
+
data: unknown;
|
|
7
|
+
}, unknown, UseMetricUnderlyingDataMutationInputType, unknown>;
|
|
8
|
+
export declare const useMetricShareCsvMutation: () => import("react-query").UseMutationResult<{
|
|
9
|
+
data: unknown;
|
|
10
|
+
}, unknown, UseMetricShareCsvMutationInputType, unknown>;
|
|
11
|
+
export declare const useMarkArchivedMutation: () => import("react-query").UseMutationResult<{
|
|
12
|
+
data: unknown;
|
|
13
|
+
}, unknown, UseMarkArchivedMutationInputType, unknown>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseMetricQueryQueryInputType } from '@/types/queryTypes';
|
|
2
|
+
export declare const useMetricDataQuery: (data: UseMetricQueryQueryInputType) => import("react-query").UseQueryResult<{
|
|
3
|
+
data: unknown;
|
|
4
|
+
}, unknown>;
|
|
5
|
+
export declare const useMetricRawDownloadSettingsQuery: (workspaceId: string) => import("react-query").UseQueryResult<{
|
|
6
|
+
data: unknown;
|
|
7
|
+
}, unknown>;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -151,6 +151,11 @@ export type ChartSettingsType = {
|
|
|
151
151
|
seriesField?: string;
|
|
152
152
|
metricFilterPosition?: string;
|
|
153
153
|
seriesOptions?: string[];
|
|
154
|
+
dynamicXAxis?: {
|
|
155
|
+
isEnabled?: boolean;
|
|
156
|
+
options?: FloatingDropDownOption[];
|
|
157
|
+
selectedOption?: FloatingDropDownOption;
|
|
158
|
+
};
|
|
154
159
|
};
|
|
155
160
|
export type SelectedColumns = {
|
|
156
161
|
column: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { RlsCondition, FloatingDropDownOption, ChartSettingsType } from './app';
|
|
3
|
-
import { ExternalMetrics } from '@/
|
|
3
|
+
import { ExternalMetrics } from '@/types/queryTypes';
|
|
4
4
|
type ColumnData = {
|
|
5
5
|
name: string;
|
|
6
6
|
datatype: string;
|