@epam/statgpt-conversation-view 0.4.1 → 0.4.2
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/components/Attachments/DownloadAlert/useDownloadAlertDetails.d.ts +15 -0
- package/components/Attachments/GridCellRenderers/helpers/get-observation-metadata-content.d.ts +27 -0
- package/components/Attachments/useAttachmentDownloadFlow.d.ts +19 -0
- package/index.js +10 -8
- package/index.mjs +6747 -5907
- package/models/actions.d.ts +2 -1
- package/models/attachments-styles.d.ts +3 -0
- package/models/attachments.d.ts +1 -0
- package/models/charting.d.ts +1 -0
- package/models/filters.d.ts +1 -1
- package/package.json +6 -6
- package/types/actions.d.ts +4 -1
- package/utils/attachments/attachment-parser.d.ts +1 -0
- package/utils/attachments/attachments-data.d.ts +1 -1
- package/utils/attachments/charting/chart-data.d.ts +1 -0
- package/utils/attachments/charting/cross-dataset-chart-data.d.ts +6 -0
- package/utils/attachments/data-grid/rows-data.d.ts +5 -1
- package/utils/attachments/python-attachment.d.ts +26 -0
- package/utils/attachments/replace-python-attachment.d.ts +10 -0
- package/utils/deferred-work.d.ts +3 -0
- package/utils/filters.d.ts +0 -5
- package/utils/get-series-filters.d.ts +2 -2
- package/utils/multiple-filters.d.ts +12 -4
- package/utils/query-filters.d.ts +2 -0
- package/utils/timezone.d.ts +1 -0
package/models/actions.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAttachmentContent, GetAttachmentBlob, GetBucket, GetDatasetData, GetDatasetDetails, UpdateConversation, getConstraints, CreateConversation, RateResponse, PutOnboardingFile, PutFile } from '../types/actions';
|
|
1
|
+
import { GetAttachmentContent, GetAttachmentBlob, GetBucket, GetDatasetData, GetDatasetDetails, UpdateConversation, getConstraints, CreateConversation, RateResponse, PutOnboardingFile, PutFile, GetPythonAttachment } from '../types/actions';
|
|
2
2
|
import { DataQuery } from '../../../shared-toolkit/src/index';
|
|
3
3
|
import { Dataflow } from '../../../sdmx-toolkit/src/index';
|
|
4
4
|
import { DownloadDatasetAction } from '../../../download-panel/src/types/actions';
|
|
@@ -14,6 +14,7 @@ export interface AttachmentsActions {
|
|
|
14
14
|
updateCurrentDataQuery: (dataQuery?: DataQuery) => void;
|
|
15
15
|
updateDataQueries: (dataQueries?: DataQuery[]) => void;
|
|
16
16
|
updateDatasets: (datasets?: Dataflow[]) => void;
|
|
17
|
+
getPythonAttachment?: GetPythonAttachment;
|
|
17
18
|
}
|
|
18
19
|
export type ConversationViewActions = AttachmentsActions & {
|
|
19
20
|
getConversation: GetConversation;
|
|
@@ -18,8 +18,11 @@ export interface AttachmentsStyles {
|
|
|
18
18
|
columnsTitle?: string;
|
|
19
19
|
columnsResetTitle?: string;
|
|
20
20
|
closeTitle?: string;
|
|
21
|
+
infoDownloadIcon?: ReactNode;
|
|
21
22
|
successDownloadIcon?: ReactNode;
|
|
22
23
|
errorDownloadIcon?: ReactNode;
|
|
24
|
+
downloadInProgressActionIcon?: ReactNode;
|
|
25
|
+
downloadErrorActionIcon?: ReactNode;
|
|
23
26
|
datasetIcon?: ReactNode;
|
|
24
27
|
isDisplayDatasetIcon?: boolean;
|
|
25
28
|
isDownloadDescriptionVisible?: boolean;
|
package/models/attachments.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface CrossDatasetGridAttachmentType extends Attachment {
|
|
|
19
19
|
}
|
|
20
20
|
export interface CustomChartAttachmentType extends Attachment {
|
|
21
21
|
charting_data?: ChartingData;
|
|
22
|
+
getChartingData?: () => ChartingData;
|
|
22
23
|
}
|
|
23
24
|
export interface CustomCodeAttachment extends Attachment {
|
|
24
25
|
language?: string;
|
package/models/charting.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface ChartUnit extends ChartUnitRows {
|
|
|
9
9
|
dimensions: DimensionInfo[];
|
|
10
10
|
limitedByRowsAmountTo: number | undefined;
|
|
11
11
|
}
|
|
12
|
+
export type ChartUnitValue = ChartUnit | (() => ChartUnit);
|
|
12
13
|
export interface ChartUnitGroup {
|
|
13
14
|
title?: string;
|
|
14
15
|
units: ChartUnit[];
|
package/models/filters.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export interface FiltersProps {
|
|
|
94
94
|
attachmentsDataQuery?: DataQuery;
|
|
95
95
|
dataQueries?: DataQuery[];
|
|
96
96
|
onFiltersChange?: (filterParams: DatasetQueryFilters, constraints: DataConstraints[], modalFilters?: Filter[]) => void;
|
|
97
|
-
onMultipleDataFiltersChange?: (filterParamsMap: Map<string, DatasetQueryFilters>, constraintsMap?: Map<string, DataConstraints[] | undefined>, dataQueries?: DataQuery[]) => void;
|
|
97
|
+
onMultipleDataFiltersChange?: (filterParamsMap: Map<string, DatasetQueryFilters>, constraintsMap?: Map<string, DataConstraints[] | undefined>, dataQueries?: DataQuery[], filtersMap?: Map<string, Filter[]>, filters?: Filter[]) => void;
|
|
98
98
|
locale?: string;
|
|
99
99
|
timeRangeOptions?: TimeRangeOptions[];
|
|
100
100
|
titles?: ConversationViewTitles;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/statgpt-conversation-view",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"classnames": "^2.5.1",
|
|
7
7
|
"@epam/ai-dial-shared": "^0.43.3",
|
|
8
8
|
"@tabler/icons-react": "^3.34.1",
|
|
9
|
-
"@epam/statgpt-shared-toolkit": "0.4.
|
|
10
|
-
"@epam/statgpt-ui-components": "0.4.
|
|
11
|
-
"@epam/statgpt-sdmx-toolkit": "0.4.
|
|
9
|
+
"@epam/statgpt-shared-toolkit": "0.4.2",
|
|
10
|
+
"@epam/statgpt-ui-components": "0.4.2",
|
|
11
|
+
"@epam/statgpt-sdmx-toolkit": "0.4.2",
|
|
12
12
|
"react-window": "^1.8.11",
|
|
13
13
|
"react-virtualized-auto-sizer": "^1.0.26",
|
|
14
14
|
"ag-grid-community": "33.3.2",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"@floating-ui/react": "^0.27.14",
|
|
17
17
|
"echarts": "^5.6.0",
|
|
18
18
|
"echarts-for-react": "^3.0.2",
|
|
19
|
-
"@epam/statgpt-dial-toolkit": "0.4.
|
|
19
|
+
"@epam/statgpt-dial-toolkit": "0.4.2",
|
|
20
20
|
"react-markdown": "^10.1.0",
|
|
21
21
|
"remark-gfm": "^4.0.1",
|
|
22
|
-
"@epam/statgpt-conversation-list": "0.4.
|
|
22
|
+
"@epam/statgpt-conversation-list": "0.4.2",
|
|
23
23
|
"flatpickr": "4.6.13",
|
|
24
24
|
"react-flatpickr": "^4.0.11",
|
|
25
25
|
"date-fns": "^4.1.0",
|
package/types/actions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridAttachmentContent, UpdateConversationRequest } from '../../../dial-toolkit/src/index';
|
|
2
2
|
import { DataMessage, DatasetQueryFilters, SdmxReferences, SeriesFilterDto, StructuralMetaData } from '../../../sdmx-toolkit/src/index';
|
|
3
|
-
import { OnboardingFileSchema, TimeRange } from '../../../shared-toolkit/src/index';
|
|
3
|
+
import { DataQuery, OnboardingFileSchema, TimeRange } from '../../../shared-toolkit/src/index';
|
|
4
4
|
import { Conversation, ConversationInfo, Entity } from '@epam/ai-dial-shared';
|
|
5
5
|
export type GetAttachmentContent = (fileId: string) => Promise<GridAttachmentContent | null>;
|
|
6
6
|
export type GetAttachmentBlob = (fileId: string) => Promise<Blob>;
|
|
@@ -15,3 +15,6 @@ export type getConstraints = (urn: string, filters?: SeriesFilterDto[], timeRang
|
|
|
15
15
|
export type RateResponse = (id: string, rate: boolean, deploymentId: string) => Promise<void>;
|
|
16
16
|
export type PutOnboardingFile = (fileName: string, filePath: string, fileData: OnboardingFileSchema) => Promise<Entity | null>;
|
|
17
17
|
export type PutFile = (filePath: string, file: Blob) => Promise<void>;
|
|
18
|
+
export type GetPythonAttachment = (queries: DataQuery[]) => Promise<{
|
|
19
|
+
python_code: string;
|
|
20
|
+
} | null>;
|
|
@@ -12,3 +12,4 @@ export declare function isChartAttachment(attachment: Attachment): boolean;
|
|
|
12
12
|
export declare function isCustomCodeSampleAttachment(attachment: Attachment): boolean;
|
|
13
13
|
export declare function isCrossDatasetGrid(attachment: Attachment): boolean;
|
|
14
14
|
export declare function isAnyGridAttachment(attachment: Attachment): boolean;
|
|
15
|
+
export declare function hasPythonCodeAttachment(attachments?: Attachment[]): boolean;
|
|
@@ -3,5 +3,5 @@ import { DataConstraints, DatasetQueryFilters } from '../../../../sdmx-toolkit/s
|
|
|
3
3
|
import { getConstraints, GetDatasetData, GetDatasetDetails } from '../../types/actions';
|
|
4
4
|
import { DatasetData, StructureDataMaps } from '../../models/structure-data';
|
|
5
5
|
export declare const getDataConstraintsMap: (dataQueries: DataQuery[], getConstraintsAction: getConstraints) => Promise<Map<string, DataConstraints[]>>;
|
|
6
|
-
export declare const getStructureDataMaps: (dataQueries: DataQuery[], getDataSetAction: GetDatasetDetails, getDataSetDataAction: GetDatasetData, setIsLoadingGridData: (isLoading: boolean) => void) => Promise<StructureDataMaps>;
|
|
6
|
+
export declare const getStructureDataMaps: (dataQueries: DataQuery[], getDataSetAction: GetDatasetDetails, getDataSetDataAction: GetDatasetData, setIsLoadingGridData: (isLoading: boolean) => void, getFilterParamsMap?: (structureDataMaps: StructureDataMaps) => Map<string, DatasetQueryFilters> | undefined | Promise<Map<string, DatasetQueryFilters> | undefined>) => Promise<StructureDataMaps>;
|
|
7
7
|
export declare const getDataSetData: (dataQuery: DataQuery, filterParams: DatasetQueryFilters, getDataSetDataAction: GetDatasetData) => Promise<DatasetData>;
|
|
@@ -4,5 +4,6 @@ import { ChartingStyles } from '../../../models/attachments-styles';
|
|
|
4
4
|
import { GridData } from '../../../types/data-grid/grid-data';
|
|
5
5
|
import { ChartingData, ChartUnit, ChartUnitRows } from '../../../models/charting';
|
|
6
6
|
export declare function buildChartData(structures: StructuralData, data: DataMessage, dataQuery: DataQuery | undefined, locale: string, styles?: ChartingStyles): ChartingData;
|
|
7
|
+
export declare function createChartDataResolver(structures: StructuralData, data: DataMessage, dataQuery: DataQuery | undefined, locale: string, styles?: ChartingStyles): () => ChartingData;
|
|
7
8
|
export declare function buildSingleLineUnit(row: GridData, sortedTimePeriods: string[], structures: StructuralData, dataQuery: DataQuery | undefined, locale: string, styles?: ChartingStyles): ChartUnit;
|
|
8
9
|
export declare function buildUnit(unit: ChartUnitRows, structures: StructuralData, dataQuery: DataQuery | undefined, timePeriods: string[], locale: string, styles?: ChartingStyles): ChartUnit;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DataMessage, StructuralData } from '../../../../../sdmx-toolkit/src/index';
|
|
2
|
+
import { DataQuery } from '../../../../../shared-toolkit/src/index';
|
|
3
|
+
import { ChartingData } from '../../../models/charting';
|
|
4
|
+
import { ChartingStyles } from '../../../models/attachments-styles';
|
|
5
|
+
export declare function createCrossDatasetChartingDataResolver(structuresMap: Map<string, StructuralData | undefined>, dataMessagesMap: Map<string, DataMessage | null>, dataQueries: DataQuery[], locale: string, chartStyles?: ChartingStyles): () => ChartingData;
|
|
6
|
+
export declare function buildCrossDatasetChartingData(structuresMap: Map<string, StructuralData | undefined>, dataMessagesMap: Map<string, DataMessage | null>, dataQueries: DataQuery[], locale: string, chartStyles?: ChartingStyles): ChartingData;
|
|
@@ -2,4 +2,8 @@ import { DataMessage, StructuralData } from '../../../../../sdmx-toolkit/src/ind
|
|
|
2
2
|
import { DataQuery } from '../../../../../shared-toolkit/src/index';
|
|
3
3
|
import { GridData } from '../../../types/data-grid/grid-data';
|
|
4
4
|
import { ChartingStyles } from '../../../models/attachments-styles';
|
|
5
|
-
|
|
5
|
+
interface GetRowsDataOptions {
|
|
6
|
+
includeChartData?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function getRowsData(data: DataMessage, structures: StructuralData, dataQuery: DataQuery | undefined, locale: string, chartStyles?: ChartingStyles, options?: GetRowsDataOptions): GridData[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Attachment } from '@epam/ai-dial-shared';
|
|
3
|
+
import { DataQuery } from '../../../../shared-toolkit/src/index';
|
|
4
|
+
import { CustomCodeAttachment } from '../../models/attachments';
|
|
5
|
+
import { GetPythonAttachment } from '../../types/actions';
|
|
6
|
+
/**
|
|
7
|
+
* Calls the python attachment API with stale-request protection and applies
|
|
8
|
+
* the result to local state and the persisted conversation.
|
|
9
|
+
*
|
|
10
|
+
* @param options.getPythonAttachment - Action that fetches refreshed python code for the given queries.
|
|
11
|
+
* @param options.dataQueries - Dataset queries (with merged UI filters) to pass to the API.
|
|
12
|
+
* @param options.requestIdRef - Ref counter used to discard responses from superseded requests.
|
|
13
|
+
* @param options.codeTitle - Title for the `CUSTOM_CODE_SAMPLE` attachment shown in the UI.
|
|
14
|
+
* @param options.markdownTitle - Title for the raw markdown attachment written back to the conversation.
|
|
15
|
+
* @param options.setCodeAttachments - State setter that replaces the current code attachment list.
|
|
16
|
+
* @param options.onCodeAttachmentUpdated - Optional callback to persist the updated markdown attachment.
|
|
17
|
+
*/
|
|
18
|
+
export declare function invokePythonAttachment(options: {
|
|
19
|
+
getPythonAttachment: GetPythonAttachment;
|
|
20
|
+
dataQueries: DataQuery[];
|
|
21
|
+
requestIdRef: RefObject<number>;
|
|
22
|
+
codeTitle: string;
|
|
23
|
+
markdownTitle: string;
|
|
24
|
+
setCodeAttachments: (attachments: CustomCodeAttachment[]) => void;
|
|
25
|
+
onCodeAttachmentUpdated?: (attachment: Attachment) => void;
|
|
26
|
+
}): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Attachment } from '@epam/ai-dial-shared';
|
|
2
|
+
import { Message } from '../../../../dial-toolkit/src/index';
|
|
3
|
+
/**
|
|
4
|
+
* Replaces the python code-sample attachment in a message's attachment list.
|
|
5
|
+
* When messageId is provided the matching message is targeted; otherwise the
|
|
6
|
+
* latest system message is used (AdvancedView path, which has no id).
|
|
7
|
+
* Returns the updated messages array, or null when the target message is not
|
|
8
|
+
* found or is not a System message.
|
|
9
|
+
*/
|
|
10
|
+
export declare function replacePythonAttachment(messages: Message[], newAttachment: Attachment, messageId?: string): Message[] | null;
|
package/utils/filters.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DataConstraints, Dimension, Hierarchy, StructuralData, StructureItemBase } from '../../../sdmx-toolkit/src/index';
|
|
2
2
|
import { Filter, FilterTreeNodeProps, FilterValue } from '../models/filters';
|
|
3
3
|
import { DataQuery } from '../../../shared-toolkit/src/index';
|
|
4
|
-
import { FilterDisplayMode } from '../constants/filter-display-mode';
|
|
5
4
|
import { ConversationViewTitles } from '../models/titles';
|
|
6
5
|
export declare const getDatasetFilters: (dimensions?: Dimension[], structures?: StructuralData, structureDimensions?: StructureItemBase[], locale?: string, datasetUrn?: string) => Filter[];
|
|
7
6
|
export declare const isSharedFilter: (filter?: Filter) => boolean;
|
|
@@ -46,10 +45,6 @@ export declare const updateFiltersWithDisabledOption: (filters: Filter[]) => ({
|
|
|
46
45
|
export declare const getFilterValuesTree: (filterValues?: FilterValue[]) => FilterTreeNodeProps[];
|
|
47
46
|
export declare const getFilterTreeNodePadding: (level: number, isHasChildren?: boolean) => string;
|
|
48
47
|
export declare const getFilterNodesBySelection: (node: FilterTreeNodeProps) => FilterTreeNodeProps[];
|
|
49
|
-
export declare const getFilterDisplaySettings: (titles?: ConversationViewTitles) => {
|
|
50
|
-
key: FilterDisplayMode;
|
|
51
|
-
title: string;
|
|
52
|
-
}[];
|
|
53
48
|
export declare const getHierarchyOptions: ({ isHierarchical, availableHierarchies, titles, }: {
|
|
54
49
|
isHierarchical?: boolean;
|
|
55
50
|
availableHierarchies?: Hierarchy[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SeriesFilterDto } from '../../../sdmx-toolkit/src/index';
|
|
1
|
+
import { DatasetDimensionsMetadataMap, SeriesFilterDto } from '../../../sdmx-toolkit/src/index';
|
|
2
2
|
import { TimeRange } from '../../../shared-toolkit/src/index';
|
|
3
3
|
import { Filter } from '../models/filters';
|
|
4
|
-
export declare const getSeriesFilterDto: (filters: Filter[], datasetUrn?: string) => SeriesFilterDto[];
|
|
4
|
+
export declare const getSeriesFilterDto: (filters: Filter[], datasetUrn?: string, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => SeriesFilterDto[];
|
|
5
5
|
export declare const getTimeSeriesFilterDto: (timeRange: TimeRange | null | undefined, id: string) => SeriesFilterDto[];
|
|
6
6
|
export declare const ONE_DAY_MS: number;
|
|
7
7
|
export declare const getTimeFilter: (date: Date, increment?: number) => string;
|
|
@@ -10,7 +10,7 @@ export declare const COMMON_COUNTRY_FILTER_ID = "COUNTRY";
|
|
|
10
10
|
export declare const COMMON_FREQUENCY_FILTER_ID = "FREQUENCY";
|
|
11
11
|
export declare const COMMON_TIME_PERIOD_FILTER_ID = "TIME_PERIOD";
|
|
12
12
|
export declare const SHARED_FILTER_IDS: Set<string>;
|
|
13
|
-
export declare const getFilledDatasetFiltersMap: (structureDataMaps?: StructureDataMaps, locale?: string) => Map<string, ({
|
|
13
|
+
export declare const getFilledDatasetFiltersMap: (structureDataMaps?: StructureDataMaps, locale?: string, requireDataMessages?: boolean) => Map<string, ({
|
|
14
14
|
dimensionValues: import('../../../sdmx-toolkit/src/index').Codelist[];
|
|
15
15
|
filterType: "dataset";
|
|
16
16
|
datasetUrn?: string;
|
|
@@ -39,8 +39,11 @@ export declare const getFilledDatasetFiltersMap: (structureDataMaps?: StructureD
|
|
|
39
39
|
})[]>;
|
|
40
40
|
export declare const getFiltersPreselectedByDataQueries: (filtersMap: Map<string, Filter[]>, dataQueries?: DataQuery[], constraintsMap?: Map<string, DataConstraints[] | undefined>, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => Filter[];
|
|
41
41
|
export declare const buildFiltersMap: (filters: Filter[], constraintsMap?: Map<string, DataConstraints[] | undefined>, applySharedFallback?: boolean, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => Map<string, Filter[]>;
|
|
42
|
-
export declare const getCompatibleDatasetUrns: (filters: Filter[], dataQueryUrns: string[]) => Set<string>;
|
|
42
|
+
export declare const getCompatibleDatasetUrns: (filters: Filter[], dataQueryUrns: string[], dataQueries?: DataQuery[], datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => Set<string>;
|
|
43
|
+
export declare const filterDataQueriesByActiveDatasetUrns: (dataQueries: DataQuery[] | undefined, activeDatasetUrns: Set<string> | null) => DataQuery[];
|
|
44
|
+
export declare const filterMapByActiveDatasetUrns: <T>(map: Map<string, T>, activeDatasetUrns: Set<string> | null) => Map<string, T>;
|
|
43
45
|
export declare const getRestoredActiveDatasetUrns: (dataQueries?: DataQuery[], datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => string[] | undefined;
|
|
46
|
+
export declare const getDataQueriesWithExpandedSharedDimensionFilters: (dataQueries: DataQuery[], constraintsMap: Map<string, DataConstraints[] | undefined> | undefined, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => DataQuery[];
|
|
44
47
|
export declare const getCrossDatasetSnapshotKey: (dataQueries?: DataQuery[]) => string;
|
|
45
48
|
export declare const getFiltersByConstraints: (filtersMap: Map<string, Filter[]>, structureDataMaps?: StructureDataMaps, locale?: Locale, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => Filter[];
|
|
46
49
|
export declare const getFiltersForQueryContext: (filters: Filter[], datasetUrn?: string, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => Filter[];
|
|
@@ -48,13 +51,18 @@ export declare const getDatasetNameFromFilters: (filter: Filter, structuresMap?:
|
|
|
48
51
|
export declare const isStructureDataMapsReady: (dataQueries?: FiltersProps["dataQueries"], structureDataMaps?: FiltersProps["structureDataMaps"]) => boolean;
|
|
49
52
|
export declare const getConstraintsRequests: (dataQueries?: DataQuery[], filtersMap?: Map<string, Filter[]>, actions?: {
|
|
50
53
|
getConstraints: (urn: string, filters?: SeriesFilterDto[]) => Promise<StructuralMetaData>;
|
|
51
|
-
}) => Promise<ExtendedStructuralMetadata>[];
|
|
54
|
+
}, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap, filters?: Filter[]) => Promise<ExtendedStructuralMetadata>[];
|
|
52
55
|
export declare const hasUncachedConstraintRequests: (dataQueries?: DataQuery[], filtersMap?: Map<string, Filter[]>, actions?: {
|
|
53
56
|
getConstraints: (urn: string, filters?: SeriesFilterDto[]) => Promise<StructuralMetaData>;
|
|
54
|
-
}) => boolean;
|
|
57
|
+
}, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap, filters?: Filter[]) => boolean;
|
|
58
|
+
export declare const hasImplicitSharedWildcard: (dataQueries: DataQuery[], structureDataMaps: StructureDataMaps, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => boolean;
|
|
55
59
|
export declare const getConstraintsMap: (constraintsData: ExtendedStructuralMetadata[]) => Map<string, DataConstraints[] | undefined>;
|
|
56
60
|
export declare const getConstraintsMapFromSettledResults: (constraintsResults: PromiseSettledResult<ExtendedStructuralMetadata>[]) => Map<string, DataConstraints[] | undefined>;
|
|
57
61
|
export declare const mergeConstraintsMaps: (baseConstraintsMap: Map<string, DataConstraints[] | undefined> | undefined, updatedConstraintsMap: Map<string, DataConstraints[] | undefined>) => Map<string, DataConstraints[] | undefined>;
|
|
58
62
|
export declare const getInitialConstraints: (isCrossDatasetModeOn: boolean, filter?: Filter, initialConstraints?: DataConstraints[], initialConstraintsMap?: Map<string, DataConstraints[] | undefined>) => DataConstraints[];
|
|
59
63
|
export declare const getQueryFiltersMap: (filtersMap: Map<string, Filter[]>, dataQueries?: DataQuery[], dimensionsMap?: Map<string, Dimension[]>) => Map<string, DatasetQueryFilters>;
|
|
64
|
+
export declare const getImplicitSharedWildcardFilterParams: (dataQueries: DataQuery[], structureDataMaps: StructureDataMaps, constraintsMap: Map<string, DataConstraints[] | undefined> | undefined, locale: string, datasetDimensionsMetadataMap?: DatasetDimensionsMetadataMap) => {
|
|
65
|
+
compatibleUrns: Set<string>;
|
|
66
|
+
filterParamsMap: Map<string, DatasetQueryFilters>;
|
|
67
|
+
} | undefined;
|
|
60
68
|
export declare const setDataQueryFiltersMap: (dataQueries?: DataQuery[], filtersMap?: Map<string, Filter[]>) => Map<string, QueryFilter[]>;
|
package/utils/query-filters.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ import { Filter } from '../models/filters';
|
|
|
4
4
|
export declare const getQueryTimeSeriesFilters: (filters: Filter[]) => QueryFilter[];
|
|
5
5
|
export declare const getTimeQueryFilterFromAttachment: (dataQuery: DataQuery, dimensions?: DimensionList) => string | null;
|
|
6
6
|
export declare const getQueryFilters: (filters: Filter[], dimensions?: Dimension[], datasetUrn?: string) => DatasetQueryFilters;
|
|
7
|
+
export declare const buildDataQueryWithMergedFilters: (dataQuery: DataQuery, uiFilters: Filter[]) => DataQuery;
|
|
7
8
|
export declare const setDataQueryFilters: (filters: Filter[], datasetUrn?: string) => QueryFilter[];
|
|
9
|
+
export declare const buildQueryFiltersForPythonAttachment: (filters: Filter[], datasetUrn?: string) => QueryFilter[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTimezone: () => string;
|