feature(dashboard): add new retention chart type
This commit is contained in:
committed by
Carl-Gerhard Lindesvärd
parent
e2065da16e
commit
f977c5454a
@@ -75,10 +75,13 @@ export const zChartInput = z.object({
|
||||
offset: z.number().optional(),
|
||||
});
|
||||
|
||||
export const zCriteria = z.enum(['on_or_after', 'on']);
|
||||
|
||||
export const zReportInput = zChartInput.extend({
|
||||
name: z.string(),
|
||||
lineType: zLineType,
|
||||
unit: z.string().optional(),
|
||||
criteria: zCriteria.optional(),
|
||||
});
|
||||
|
||||
export const zInviteUser = z.object({
|
||||
|
||||
@@ -5,6 +5,7 @@ import type {
|
||||
zChartEvent,
|
||||
zChartInput,
|
||||
zChartType,
|
||||
zCriteria,
|
||||
zLineType,
|
||||
zMetric,
|
||||
zRange,
|
||||
@@ -41,6 +42,7 @@ export type IGetChartDataInput = {
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
} & Omit<IChartInput, 'events' | 'name' | 'startDate' | 'endDate' | 'range'>;
|
||||
export type ICriteria = z.infer<typeof zCriteria>;
|
||||
|
||||
export type PreviousValue =
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user