@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 +12 -4
- package/dist/helpers/cron.d.ts +1 -0
- package/dist/index.js +7336 -94
- package/dist/index.js.map +4 -4
- package/dist/index.js.meta.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils.d.ts +10 -1
- package/package.json +3 -3
package/dist/filters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Datasource, BBReferenceFieldSubType, FieldType, FormulaType,
|
|
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
|
-
*
|
|
65
|
-
*
|
|
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
|
|
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
|
/**
|
package/dist/helpers/cron.d.ts
CHANGED