mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # src/lib/constants.ts
This commit is contained in:
commit
19d5ac0a4c
23 changed files with 500 additions and 10 deletions
|
|
@ -119,7 +119,10 @@ async function parseFilters(websiteId: string, filters: QueryFilters = {}, optio
|
|||
};
|
||||
}
|
||||
|
||||
async function rawQuery(query: string, params: Record<string, unknown> = {}): Promise<unknown> {
|
||||
async function rawQuery<T = unknown>(
|
||||
query: string,
|
||||
params: Record<string, unknown> = {},
|
||||
): Promise<T> {
|
||||
if (process.env.LOG_QUERY) {
|
||||
log('QUERY:\n', query);
|
||||
log('PARAMETERS:\n', params);
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ export const REPORT_TYPES = {
|
|||
retention: 'retention',
|
||||
utm: 'utm',
|
||||
journey: 'journey',
|
||||
revenue: 'revenue',
|
||||
} as const;
|
||||
|
||||
export const REPORT_PARAMETERS = {
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@ export interface QueryFilters {
|
|||
referrer?: string;
|
||||
title?: string;
|
||||
query?: string;
|
||||
host?: string;
|
||||
os?: string;
|
||||
browser?: string;
|
||||
device?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue