mirror of
https://github.com/apache/superset.git
synced 2024-09-19 12:09:42 -04:00
67 lines
1.8 KiB
TypeScript
67 lines
1.8 KiB
TypeScript
import { Currency } from '@superset-ui/core';
|
|
|
|
/**
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
* or more contributor license agreements. See the NOTICE file
|
|
* distributed with this work for additional information
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
* to you under the Apache License, Version 2.0 (the
|
|
* "License"); you may not use this file except in compliance
|
|
* with the License. You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing,
|
|
* software distributed under the License is distributed on an
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
* KIND, either express or implied. See the License for the
|
|
* specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
export type ColumnObject = {
|
|
id: number;
|
|
column_name: string;
|
|
type: string;
|
|
verbose_name?: string;
|
|
description?: string;
|
|
expression?: string;
|
|
filterable: boolean;
|
|
groupby: boolean;
|
|
is_active: boolean;
|
|
is_dttm: boolean;
|
|
python_date_format?: string;
|
|
uuid?: string;
|
|
extra?: string;
|
|
};
|
|
|
|
type MetricObject = {
|
|
id: number;
|
|
expression?: string;
|
|
description?: string;
|
|
metric_name: string;
|
|
metric_type: string;
|
|
d3format?: string;
|
|
currency?: Currency;
|
|
warning_text?: string;
|
|
};
|
|
|
|
export type DatasetObject = {
|
|
table_name?: string;
|
|
sql?: string;
|
|
filter_select_enabled?: boolean;
|
|
fetch_values_predicate?: string;
|
|
schema?: string;
|
|
description?: string;
|
|
main_dttm_col?: string;
|
|
offset?: number;
|
|
default_endpoint?: string;
|
|
cache_timeout?: number;
|
|
is_sqllab_view?: boolean;
|
|
template_params?: string;
|
|
owners: number[];
|
|
columns: ColumnObject[];
|
|
metrics: MetricObject[];
|
|
extra?: string;
|
|
is_managed_externally: boolean;
|
|
};
|