@quillsql/admin 1.8.0 → 1.8.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.
package/dist/index.cjs CHANGED
@@ -69,10 +69,10 @@ var ALL_TENANTS = "QUILL_ALL_TENANTS";
69
69
  var SINGLE_TENANT = "QUILL_SINGLE_TENANT";
70
70
  var SAVED_QUERIES_DASHBOARD = "quill-saved-queries";
71
71
  var QUILL_SERVER = typeof process !== "undefined" && process.env ? process.env.QUILL_SERVER_HOST ?? "https://quill-344421.uc.r.appspot.com" : "https://quill-344421.uc.r.appspot.com";
72
- var QUILL_QUERY_ENDPOINT = typeof process !== "undefined" && process.env ? process.env.QUILL_QUERY_ENDPOINT ?? "/cloud" : "/cloud";
72
+ var QUILL_QUERY_ENDPOINT = "/cloud/engine";
73
73
  var QUILL_ENDPOINTS = [
74
- "https://quill-344421.uc.r.appspot.com/cloud",
75
- "https://quill-ruby-server.onrender.com/cloud"
74
+ "https://quill-344421.uc.r.appspot.com/cloud/engine",
75
+ "https://quill-ruby-server.onrender.com/cloud/engine"
76
76
  ];
77
77
 
78
78
  // src/public_components/CreateEnvironment.tsx
@@ -2186,7 +2186,7 @@ async function getVirtualTableData(clientId, query, databaseType, queryEndpoint,
2186
2186
  },
2187
2187
  task: "query-view",
2188
2188
  metadata: {
2189
- preQueries: [query],
2189
+ view: query,
2190
2190
  clientId,
2191
2191
  runQueryConfig: {
2192
2192
  convertDatatypes: true,
@@ -2248,7 +2248,7 @@ async function getVirtualTableData(clientId, query, databaseType, queryEndpoint,
2248
2248
  }
2249
2249
  }
2250
2250
  return queryEndpoint ? {
2251
- ...results.data.queryResults[0],
2251
+ ...results.queries.queryResults[0],
2252
2252
  ...queryAst,
2253
2253
  success: results.status === "success" ? true : false
2254
2254
  } : { ...results, ...queryAst };
@@ -8657,7 +8657,7 @@ function AdminProvider({
8657
8657
  {
8658
8658
  tenants,
8659
8659
  flags,
8660
- queryEndpoint: state.queryEndpoint,
8660
+ queryEndpoint: "https://quill-344421.uc.r.appspot.com/cloud/engine",
8661
8661
  withCredentials: state.withCredentials,
8662
8662
  queryHeaders: state.queryHeaders,
8663
8663
  publicKey: state.client._id,
@@ -15909,9 +15909,6 @@ function EditFiltersModal({
15909
15909
  ),
15910
15910
  [state.client?.allTenantTypes, state.client?.ownerTenantFields]
15911
15911
  );
15912
- (0, import_react40.useEffect)(() => {
15913
- console.log("New tenant filters:", newTenantFilters);
15914
- }, [newTenantFilters]);
15915
15912
  const assignDefaultInterval = (label, set2, loopStart, loopEnd) => {
15916
15913
  if (!newDateFilter) return;
15917
15914
  if (set2) {
@@ -19862,7 +19859,6 @@ function ChartQueryBuilder({
19862
19859
  import_react46.SQLEditor,
19863
19860
  {
19864
19861
  isAdminEnabled: true,
19865
- showTableFormatOptions: true,
19866
19862
  showAccessControlOptions: true,
19867
19863
  showDateFieldOptions: true,
19868
19864
  defaultQuery: query,
package/dist/index.js CHANGED
@@ -29,10 +29,10 @@ var ALL_TENANTS = "QUILL_ALL_TENANTS";
29
29
  var SINGLE_TENANT = "QUILL_SINGLE_TENANT";
30
30
  var SAVED_QUERIES_DASHBOARD = "quill-saved-queries";
31
31
  var QUILL_SERVER = typeof process !== "undefined" && process.env ? process.env.QUILL_SERVER_HOST ?? "https://quill-344421.uc.r.appspot.com" : "https://quill-344421.uc.r.appspot.com";
32
- var QUILL_QUERY_ENDPOINT = typeof process !== "undefined" && process.env ? process.env.QUILL_QUERY_ENDPOINT ?? "/cloud" : "/cloud";
32
+ var QUILL_QUERY_ENDPOINT = "/cloud/engine";
33
33
  var QUILL_ENDPOINTS = [
34
- "https://quill-344421.uc.r.appspot.com/cloud",
35
- "https://quill-ruby-server.onrender.com/cloud"
34
+ "https://quill-344421.uc.r.appspot.com/cloud/engine",
35
+ "https://quill-ruby-server.onrender.com/cloud/engine"
36
36
  ];
37
37
 
38
38
  // src/public_components/CreateEnvironment.tsx
@@ -2160,7 +2160,7 @@ async function getVirtualTableData(clientId, query, databaseType, queryEndpoint,
2160
2160
  },
2161
2161
  task: "query-view",
2162
2162
  metadata: {
2163
- preQueries: [query],
2163
+ view: query,
2164
2164
  clientId,
2165
2165
  runQueryConfig: {
2166
2166
  convertDatatypes: true,
@@ -2222,7 +2222,7 @@ async function getVirtualTableData(clientId, query, databaseType, queryEndpoint,
2222
2222
  }
2223
2223
  }
2224
2224
  return queryEndpoint ? {
2225
- ...results.data.queryResults[0],
2225
+ ...results.queries.queryResults[0],
2226
2226
  ...queryAst,
2227
2227
  success: results.status === "success" ? true : false
2228
2228
  } : { ...results, ...queryAst };
@@ -8645,7 +8645,7 @@ function AdminProvider({
8645
8645
  {
8646
8646
  tenants,
8647
8647
  flags,
8648
- queryEndpoint: state.queryEndpoint,
8648
+ queryEndpoint: "https://quill-344421.uc.r.appspot.com/cloud/engine",
8649
8649
  withCredentials: state.withCredentials,
8650
8650
  queryHeaders: state.queryHeaders,
8651
8651
  publicKey: state.client._id,
@@ -15912,9 +15912,6 @@ function EditFiltersModal({
15912
15912
  ),
15913
15913
  [state.client?.allTenantTypes, state.client?.ownerTenantFields]
15914
15914
  );
15915
- useEffect22(() => {
15916
- console.log("New tenant filters:", newTenantFilters);
15917
- }, [newTenantFilters]);
15918
15915
  const assignDefaultInterval = (label, set2, loopStart, loopEnd) => {
15919
15916
  if (!newDateFilter) return;
15920
15917
  if (set2) {
@@ -19869,7 +19866,6 @@ function ChartQueryBuilder({
19869
19866
  SQLEditor2,
19870
19867
  {
19871
19868
  isAdminEnabled: true,
19872
- showTableFormatOptions: true,
19873
19869
  showAccessControlOptions: true,
19874
19870
  showDateFieldOptions: true,
19875
19871
  defaultQuery: query,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/admin",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Admin tools for Quill",
5
5
  "type": "module",
6
6
  "exports": {