@bluecopa/core 0.1.23 → 0.1.25
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/api/inputTable/deleteRow.d.ts +23 -0
- package/dist/api/inputTable/getRows.d.ts +38 -0
- package/dist/api/inputTable/index.d.ts +4 -0
- package/dist/api/inputTable/insertRow.d.ts +16 -0
- package/dist/api/inputTable/updateRow.d.ts +24 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +137 -1
- package/dist/index.es.js.map +1 -1
- package/dist/utils/inputTable/inputTableDefinition.d.ts +1 -1
- package/dist/utils/metric/analysisMethods.d.ts +8 -35
- package/dist/utils/metric/filterUtils.d.ts +1 -1
- package/dist/utils/metric/getMetricDefinition.d.ts +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ export declare const generateDefinitionModel: ({ filters, sort, metricSeries, ta
|
|
|
26
26
|
definition: InputTableDefinitionModel;
|
|
27
27
|
};
|
|
28
28
|
export declare const sortConfigFromValue: (sortBy: SortOptions) => {
|
|
29
|
-
[x: number]:
|
|
29
|
+
[x: number]: any;
|
|
30
30
|
};
|
|
31
31
|
export declare const getMetricSeries: (props: {
|
|
32
32
|
pivotCols: string[];
|
|
@@ -2,7 +2,7 @@ import { DatasetImportMetadata } from '../../../../models/src/lib/gen/Api';
|
|
|
2
2
|
import { SelectOptionType } from '../../../../models/src/lib/types/selectType';
|
|
3
3
|
import { DateRange } from '../../../../models/src/lib/ui-models/dateRangeModel';
|
|
4
4
|
import { ProjectFractionEnum, Definition, Import, Inputs, TimeBin, Variable } from '../../../../models/src/lib/ui-models/definitionModel';
|
|
5
|
-
import { CommonFilter, FilterPanelStoreType, FilterRule, FilterSelectOptionsType,
|
|
5
|
+
import { CommonFilter, FilterPanelStoreType, FilterRule, FilterSelectOptionsType, RuleType } from '../../../../models/src/lib/ui-models/filterModel';
|
|
6
6
|
import { CustomCalculationShowAsEnum, ShowAsEnum, WorkbookCustomModel, ColumnSetting, GridColumnState, MetricCustomModel, MetricMetadataType, PivotCustomModel, Sheet, SortOptions, ValueColsType, LimitOptions, RowGroupsType } from '../../../../models/src/lib/ui-models/workbookModel';
|
|
7
7
|
export type MetricToolPanelType = {
|
|
8
8
|
pivotCols: string[];
|
|
@@ -32,22 +32,7 @@ export declare const getPivotGridData: (props: {
|
|
|
32
32
|
export declare const replaceFilterColumn: (props: {
|
|
33
33
|
fr: FilterSelectOptionsType[];
|
|
34
34
|
column: SelectOptionType<ColumnSetting>;
|
|
35
|
-
}) =>
|
|
36
|
-
label: string;
|
|
37
|
-
value: any;
|
|
38
|
-
selectable?: boolean;
|
|
39
|
-
group?: string;
|
|
40
|
-
hint?: string;
|
|
41
|
-
option: {
|
|
42
|
-
aggFun?: string;
|
|
43
|
-
uniqueValues: FilterUniqueValueSelectOptionsType[];
|
|
44
|
-
ruleType: RuleType;
|
|
45
|
-
type: string;
|
|
46
|
-
uniqueValueCount: number;
|
|
47
|
-
datasetId?: string;
|
|
48
|
-
datasetName?: string;
|
|
49
|
-
};
|
|
50
|
-
}[];
|
|
35
|
+
}) => any;
|
|
51
36
|
export declare const mergeCommonFilters: (props: {
|
|
52
37
|
commonFilters: CommonFilter[];
|
|
53
38
|
rule: FilterSelectOptionsType[];
|
|
@@ -55,7 +40,7 @@ export declare const mergeCommonFilters: (props: {
|
|
|
55
40
|
lineId: string;
|
|
56
41
|
}) => {
|
|
57
42
|
defaultType: RuleType;
|
|
58
|
-
rules:
|
|
43
|
+
rules: any;
|
|
59
44
|
};
|
|
60
45
|
export declare const getUniqueValues: (column: string[], sheetDetails?: {
|
|
61
46
|
sheetId: string;
|
|
@@ -239,7 +224,7 @@ export declare const getValueGroupsSelectOptions: (props: {
|
|
|
239
224
|
option: {
|
|
240
225
|
formulaMode: boolean;
|
|
241
226
|
aggFun: string;
|
|
242
|
-
fieldLabel:
|
|
227
|
+
fieldLabel: any;
|
|
243
228
|
impact: "positive" | "negative";
|
|
244
229
|
type: ValueColsType["type"];
|
|
245
230
|
currency: import('../../../../models/src/lib/common/localeUtils').NewCurrencyType;
|
|
@@ -286,19 +271,7 @@ export declare const getNewMetricSheet: (props: {
|
|
|
286
271
|
metadata: import('../../../../models/src/lib/ui-models/dashboardModel').BlockMetadataType;
|
|
287
272
|
settings: import('../../../../models/src/lib/ui-models/dashboardModel').BlockSettingsType;
|
|
288
273
|
}>>;
|
|
289
|
-
export declare const getColumnSettingsToSelectOptions: (columnSettings: ColumnSetting[]) =>
|
|
290
|
-
label: string;
|
|
291
|
-
value: string;
|
|
292
|
-
option: {
|
|
293
|
-
type: "date" | "str" | "f64" | "i64" | "datetime(time_unit='us', time_zone=None)";
|
|
294
|
-
uniqueCount: number;
|
|
295
|
-
fieldLabel: string;
|
|
296
|
-
currency: import('../../../../models/src/lib/common/localeUtils').NewCurrencyType;
|
|
297
|
-
precision: number;
|
|
298
|
-
dateFormat: string;
|
|
299
|
-
isCurrency: boolean;
|
|
300
|
-
};
|
|
301
|
-
}[];
|
|
274
|
+
export declare const getColumnSettingsToSelectOptions: (columnSettings: ColumnSetting[]) => any;
|
|
302
275
|
export declare const getDefinitionModelWithUpdatedValueCols: (props: {
|
|
303
276
|
definition: Definition;
|
|
304
277
|
valueCols: ValueColsType[];
|
|
@@ -329,7 +302,7 @@ export declare const applyFilter: (props: {
|
|
|
329
302
|
}) => Promise<any[]>;
|
|
330
303
|
export declare const defaultFilterRule: FilterRule;
|
|
331
304
|
export declare const getPromotedFiltersSelectOptionsForLine: (metricSheet: Sheet<MetricCustomModel>) => SelectOptionType[];
|
|
332
|
-
export declare const getAllLinesFilterSelectOptions: (metricSheets: Sheet<MetricCustomModel>[]) =>
|
|
305
|
+
export declare const getAllLinesFilterSelectOptions: (metricSheets: Sheet<MetricCustomModel>[]) => any;
|
|
333
306
|
export declare function formatDate(date: any): string;
|
|
334
307
|
export declare const getQuarterDates: (props: {
|
|
335
308
|
month: number;
|
|
@@ -420,7 +393,7 @@ export declare const checkIfCurrencyFormula: (props: {
|
|
|
420
393
|
formula: string;
|
|
421
394
|
columns: any;
|
|
422
395
|
}) => boolean;
|
|
423
|
-
export declare const getProjectAsInput: (valueCols: ValueColsType[]) =>
|
|
396
|
+
export declare const getProjectAsInput: (valueCols: ValueColsType[]) => any;
|
|
424
397
|
export declare const getUpdatedDefinitionCustomModel: (props: {
|
|
425
398
|
metricDefinitionModel: Definition;
|
|
426
399
|
parentDefinitionModel: Definition;
|
|
@@ -448,4 +421,4 @@ export declare const timeBinToIntervalMapper: {
|
|
|
448
421
|
export declare const mapValueColsWithTrends: (props: {
|
|
449
422
|
valueCols: ValueColsType[];
|
|
450
423
|
compareTrends: PivotCustomModel["compareTrends"];
|
|
451
|
-
}) =>
|
|
424
|
+
}) => any;
|
|
@@ -18,4 +18,4 @@ export declare const getFilterRulesFromFilterSelectOptionsMap: (filterSelectOpti
|
|
|
18
18
|
};
|
|
19
19
|
export declare const getColumnFilterRuleFromCombinedFilterRule: (combinedFilterRule: FilterRule, valueCols: ValueColsType[]) => FilterRule;
|
|
20
20
|
export declare const getAggregateFilterRuleFromCombinedFilterRule: (combinedFilterRule: FilterRule, valueCols: ValueColsType[]) => FilterRule;
|
|
21
|
-
export declare const getIsNotValueForPredicateType: (predicateType: Operator) =>
|
|
21
|
+
export declare const getIsNotValueForPredicateType: (predicateType: Operator) => any;
|
|
@@ -23,6 +23,6 @@ export declare const getMetricDefinition: (props: {
|
|
|
23
23
|
};
|
|
24
24
|
export declare const getSelectedMetricsParentIds: (selectedItems: {
|
|
25
25
|
sheet: Worksheet;
|
|
26
|
-
}[]) =>
|
|
26
|
+
}[]) => any;
|
|
27
27
|
export declare const defaultDashboardDateRangeModel: DashboardDateRangeModel;
|
|
28
28
|
export declare const defaultCurrencyModel: BoardCurrencyModel;
|