@magemetrics/ai 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -311,6 +311,15 @@ declare const FrontendReportColumnsSchema: z.ZodArray<z.ZodObject<{
311
311
  dataType: z.ZodString;
312
312
  renderType: z.ZodOptional<z.ZodString>;
313
313
  unit: z.ZodOptional<z.ZodString>;
314
+ canonicalDataType: z.ZodOptional<z.ZodEnum<{
315
+ boolean: "boolean";
316
+ array: "array";
317
+ text: "text";
318
+ json: "json";
319
+ other: "other";
320
+ datetime: "datetime";
321
+ numeric: "numeric";
322
+ }>>;
314
323
  name: z.ZodString;
315
324
  data_type: z.ZodString;
316
325
  }, z.core.$strip>>;
@@ -729,7 +738,26 @@ declare type StartOptions = DisplayControlProps & {
729
738
  enableSpeechToText?: boolean;
730
739
  };
731
740
 
732
- declare type TableFilters = Record<string, string | number>;
741
+ declare type TableFilters = Record<string, TableFilterValue>;
742
+
743
+ declare type TableFilterValue = z.infer<typeof TableFilterValueSchema>;
744
+
745
+ declare const TableFilterValueSchema: z.ZodObject<{
746
+ operator: z.ZodEnum<{
747
+ endsWith: "endsWith";
748
+ startsWith: "startsWith";
749
+ contains: "contains";
750
+ eq: "eq";
751
+ gt: "gt";
752
+ gte: "gte";
753
+ lt: "lt";
754
+ lte: "lte";
755
+ neq: "neq";
756
+ regex: "regex";
757
+ between: "between";
758
+ }>;
759
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
760
+ }, z.core.$strip>;
733
761
 
734
762
  /**
735
763
  * Hook to fetch a canvas by its ID.
@@ -881,6 +909,7 @@ export declare const useDataReport: (reportId: FrontendReport["id"]) => {
881
909
  dataType: string;
882
910
  renderType?: string;
883
911
  unit?: string;
912
+ canonicalDataType?: "numeric" | "boolean" | "datetime" | "text" | "array" | "json" | "other";
884
913
  }[] | undefined;
885
914
  isPendingColumns: boolean;
886
915
  isPendingData: boolean;
@@ -1036,6 +1065,7 @@ export declare const usePaginatedDataReport: (reportId: FrontendReport["id"], op
1036
1065
  dataType: string;
1037
1066
  renderType?: string;
1038
1067
  unit?: string;
1068
+ canonicalDataType?: "numeric" | "boolean" | "datetime" | "text" | "array" | "json" | "other";
1039
1069
  }[] | undefined;
1040
1070
  isPendingColumns: boolean;
1041
1071
  isPendingData: boolean;