Namespace export shared-core
This commit is contained in:
parent
999ccdbe20
commit
9861e8073a
|
@ -1,13 +1,11 @@
|
|||
import { writable, derived, get } from "svelte/store"
|
||||
import { cloneDeep } from "lodash/fp"
|
||||
import {
|
||||
buildLuceneQuery,
|
||||
luceneLimit,
|
||||
runLuceneQuery,
|
||||
luceneSort,
|
||||
} from "../utils/lucene"
|
||||
import { LuceneUtils } from "../utils"
|
||||
import { convertJSONSchemaToTableSchema } from "../utils/json"
|
||||
|
||||
const { buildLuceneQuery, luceneLimit, runLuceneQuery, luceneSort } =
|
||||
LuceneUtils
|
||||
|
||||
/**
|
||||
* Parent class which handles the implementation of fetching data from an
|
||||
* internal table or datasource plus.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export * as LuceneUtils from "./lucene"
|
||||
export { dataFilters as LuceneUtils } from "@budibase/shared-core"
|
||||
export * as JSONUtils from "./json"
|
||||
export * as CookieUtils from "./cookies"
|
||||
export * as RoleUtils from "./roles"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
export * from "@budibase/shared-core"
|
|
@ -16,7 +16,7 @@ import { DataSourceOperation, FieldTypes } from "../constants"
|
|||
import { GoogleSpreadsheet } from "google-spreadsheet"
|
||||
import fetch from "node-fetch"
|
||||
import { configs, HTTPError } from "@budibase/backend-core"
|
||||
import { runLuceneQuery } from "@budibase/shared-core"
|
||||
import { dataFilters } from "@budibase/shared-core"
|
||||
|
||||
interface GoogleSheetsConfig {
|
||||
spreadsheetId: string
|
||||
|
@ -359,7 +359,7 @@ class GoogleSheetsIntegration implements DatasourcePlus {
|
|||
await this.connect()
|
||||
const sheet = this.client.sheetsByTitle[query.sheet]
|
||||
const rows = await sheet.getRows()
|
||||
const filtered = runLuceneQuery(rows, query.filters)
|
||||
const filtered = dataFilters.runLuceneQuery(rows, query.filters)
|
||||
const headerValues = sheet.headerValues
|
||||
const response = []
|
||||
for (let row of filtered) {
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
export * from "./constants"
|
||||
export * from "./filters"
|
||||
export * as dataFilters from "./filters"
|
||||
|
|
Loading…
Reference in New Issue