2023-01-20 07:00:47 -08:00
|
|
|
import { IDataObject } from 'n8n-workflow';
|
|
|
|
|
2021-01-05 10:16:25 -08:00
|
|
|
export interface IData {
|
|
|
|
viewId: string;
|
|
|
|
dimensions?: IDimension[];
|
2021-06-25 06:51:02 -07:00
|
|
|
dimensionFilterClauses?: {
|
|
|
|
filters: IDimensionFilter[];
|
|
|
|
};
|
2021-01-05 10:16:25 -08:00
|
|
|
pageSize?: number;
|
|
|
|
metrics?: IMetric[];
|
2023-01-20 07:00:47 -08:00
|
|
|
dateRanges?: IDataObject[];
|
2021-01-05 10:16:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IDimension {
|
|
|
|
name?: string;
|
|
|
|
histogramBuckets?: string[];
|
|
|
|
}
|
|
|
|
|
2021-06-25 06:51:02 -07:00
|
|
|
export interface IDimensionFilter {
|
|
|
|
dimensionName?: string;
|
|
|
|
operator?: string;
|
|
|
|
expressions?: string[];
|
|
|
|
}
|
2021-01-05 10:16:25 -08:00
|
|
|
export interface IMetric {
|
|
|
|
expression?: string;
|
|
|
|
alias?: string;
|
|
|
|
formattingType?: string;
|
|
|
|
}
|