@budibase/shared-core 3.4.24 → 3.5.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.
@@ -0,0 +1,2 @@
1
+ import { AutomationStepDefinition } from "@budibase/types";
2
+ export declare const definition: AutomationStepDefinition;
@@ -7,6 +7,7 @@ export * as deleteRow from "./deleteRow";
7
7
  export * as discord from "./discord";
8
8
  export * as executeQuery from "./executeQuery";
9
9
  export * as executeScript from "./executeScript";
10
+ export * as executeScriptV2 from "./executeScriptV2";
10
11
  export * as filter from "./filter";
11
12
  export * as loop from "./loop";
12
13
  export * as make from "./make";
package/dist/filters.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Datasource, BBReferenceFieldSubType, FieldType, FormulaType, LegacyFilter, SearchFilters, SearchQueryFields, SortType, FieldConstraints, SortOrder, RowSearchParams, EmptyFilterOption, SearchResponse, Table, UISearchFilter, SearchFilter } from "@budibase/types";
1
+ import { Datasource, BBReferenceFieldSubType, FieldType, FormulaType, LegacyFilter, SearchFilters, SearchQueryFields, SortType, FieldConstraints, SortOrder, EmptyFilterOption, SearchResponse, Table, UISearchFilter, SearchFilter, WithRequired, SearchParams } from "@budibase/types";
2
2
  /**
3
3
  * Returns the valid operator options for a certain data type
4
4
  */
@@ -74,7 +74,9 @@ export declare function splitFiltersArray(filters: LegacyFilter[]): LegacyFilter
74
74
  */
75
75
  export declare function buildQuery(filter?: UISearchFilter | LegacyFilter[]): SearchFilters;
76
76
  export declare function fixupFilterArrays(filters: SearchFilters): SearchFilters;
77
- export declare function search<T extends Record<string, any>>(docs: T[], query: Omit<RowSearchParams, "tableId">): SearchResponse<T>;
77
+ type SearchQuery = WithRequired<Pick<SearchParams, "query" | "sort" | "sortOrder" | "sortType" | "limit" | "countRows">, "query">;
78
+ export type InMemorySearchQuery = SearchQuery;
79
+ export declare function search<T extends Record<string, any>>(docs: T[], query: SearchQuery): SearchResponse<T>;
78
80
  /**
79
81
  * Performs a client-side search on an array of data
80
82
  * @param docs the data
@@ -98,3 +100,4 @@ export declare function sort<T extends Record<string, any>>(docs: T[], sort: key
98
100
  */
99
101
  export declare function limit<T>(docs: T[], limit: string | number): T[];
100
102
  export declare const hasFilters: (query?: SearchFilters) => boolean;
103
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./constants";
2
2
  export * as dataFilters from "./filters";
3
+ export type * from "./filters";
3
4
  export * as helpers from "./helpers";
4
5
  export * as utils from "./utils";
5
6
  export * as sdk from "./sdk";