mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Updated WebsiteSelect behavior. Fixed date select.
This commit is contained in:
parent
f9442001e4
commit
8d5e8b072d
4 changed files with 23 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { UseQueryOptions } from '@tanstack/react-query';
|
||||
import { DATA_TYPE, PERMISSIONS, ROLES } from './constants';
|
||||
import { DATA_TYPE, PERMISSIONS, ROLES, OPERATORS } from './constants';
|
||||
import { TIME_UNIT } from './date';
|
||||
|
||||
export type ObjectValues<T> = T[keyof T];
|
||||
|
|
@ -10,6 +10,7 @@ export type TimeUnit = ObjectValues<typeof TIME_UNIT>;
|
|||
export type Permission = ObjectValues<typeof PERMISSIONS>;
|
||||
export type Role = ObjectValues<typeof ROLES>;
|
||||
export type DynamicDataType = ObjectValues<typeof DATA_TYPE>;
|
||||
export type Operator = (typeof OPERATORS)[keyof typeof OPERATORS];
|
||||
|
||||
export interface Auth {
|
||||
user?: {
|
||||
|
|
@ -26,10 +27,10 @@ export interface Auth {
|
|||
|
||||
export interface Filter {
|
||||
name: string;
|
||||
operator: string;
|
||||
operator: Operator;
|
||||
value: string;
|
||||
type?: string;
|
||||
columns?: string;
|
||||
column?: string;
|
||||
prefix?: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue