Kaizen
Browse modulesInsightsinsights/sharedSchemas and constants

Variable: dashboardViewSnapshotSchema

const dashboardViewSnapshotSchema: ZodObject<{
  bucket: ZodOptional<ZodEnum<{
     day: "day";
     month: "month";
     quarter: "quarter";
     week: "week";
     year: "year";
  }>>;
  filters: ZodDefault<ZodRecord<ZodString, ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
     from: ZodString;
     kind: ZodLiteral<"date-range">;
     to: ZodNullable<ZodString>;
   }, $strip>, ZodObject<{
     kind: ZodLiteral<"select">;
     values: ZodArray<ZodString>;
   }, $strip>, ZodObject<{
     kind: ZodLiteral<"measure">;
     operator: ZodEnum<{
        eq: ...;
        gt: ...;
        gte: ...;
        lt: ...;
        lte: ...;
     }>;
     value: ZodNumber;
   }, $strip>, ZodObject<{
     kind: ZodLiteral<"search">;
     text: ZodString;
  }, $strip>], "kind">>>>;
  range: ZodOptional<ZodObject<{
     from: ZodString;
     to: ZodString;
  }, $strip>>;
}, $strip>;

Defined in: shared/insights/dashboard-schedule.ts:13