@budibase/shared-core 2.32.10 → 2.32.12

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.
package/dist/filters.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Datasource, BBReferenceFieldSubType, FieldType, FormulaType, SearchFilter, SearchFilters, SearchQueryFields, SortType, FieldConstraints, SortOrder, RowSearchParams, SearchResponse, Table } from "@budibase/types";
1
+ import { Datasource, BBReferenceFieldSubType, FieldType, FormulaType, LegacyFilter, SearchFilters, SearchQueryFields, SortType, FieldConstraints, SortOrder, RowSearchParams, SearchResponse, Table, SearchFilterGroup } from "@budibase/types";
2
2
  /**
3
3
  * Returns the valid operator options for a certain data type
4
4
  */
@@ -60,11 +60,19 @@ export declare class ColumnSplitter {
60
60
  column: string;
61
61
  };
62
62
  }
63
+ export declare const buildQueryLegacy: (filter?: LegacyFilter[] | SearchFilters) => SearchFilters | undefined;
63
64
  /**
64
- * Builds a JSON query from the filter structure generated in the builder
65
- * @param filter the builder filter structure
65
+ * Converts a **SearchFilterGroup** filter definition into a grouped
66
+ * search query of type **SearchFilters**
67
+ *
68
+ * Legacy support remains for the old **SearchFilter[]** format.
69
+ * These will be migrated to an appropriate **SearchFilters** object, if encountered
70
+ *
71
+ * @param filter
72
+ *
73
+ * @returns {SearchFilters}
66
74
  */
67
- export declare const buildQuery: (filter: SearchFilter[]) => SearchFilters;
75
+ export declare const buildQuery: (filter?: SearchFilterGroup | LegacyFilter[]) => SearchFilters | undefined;
68
76
  export declare function fixupFilterArrays(filters: SearchFilters): SearchFilters;
69
77
  export declare function search<T>(docs: Record<string, T>[], query: RowSearchParams): SearchResponse<Record<string, T>>;
70
78
  /**
@@ -1,3 +1,4 @@
1
+ export declare function getNextExecutionDates(cronExpression: string, limit?: number): string[];
1
2
  export declare function validate(cronExpression: string): {
2
3
  valid: false;
3
4
  err: string[];