@quillsql/admin 1.7.6 → 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,10 +2186,9 @@ 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
- overridePost: true,
2193
2192
  convertDatatypes: true,
2194
2193
  limitThousand: !limitRegex.test(query)
2195
2194
  },
@@ -2249,7 +2248,7 @@ async function getVirtualTableData(clientId, query, databaseType, queryEndpoint,
2249
2248
  }
2250
2249
  }
2251
2250
  return queryEndpoint ? {
2252
- ...results.data.queryResults[0],
2251
+ ...results.queries.queryResults[0],
2253
2252
  ...queryAst,
2254
2253
  success: results.status === "success" ? true : false
2255
2254
  } : { ...results, ...queryAst };
@@ -8658,7 +8657,7 @@ function AdminProvider({
8658
8657
  {
8659
8658
  tenants,
8660
8659
  flags,
8661
- queryEndpoint: state.queryEndpoint,
8660
+ queryEndpoint: "https://quill-344421.uc.r.appspot.com/cloud/engine",
8662
8661
  withCredentials: state.withCredentials,
8663
8662
  queryHeaders: state.queryHeaders,
8664
8663
  publicKey: state.client._id,
@@ -15910,9 +15909,6 @@ function EditFiltersModal({
15910
15909
  ),
15911
15910
  [state.client?.allTenantTypes, state.client?.ownerTenantFields]
15912
15911
  );
15913
- (0, import_react40.useEffect)(() => {
15914
- console.log("New tenant filters:", newTenantFilters);
15915
- }, [newTenantFilters]);
15916
15912
  const assignDefaultInterval = (label, set2, loopStart, loopEnd) => {
15917
15913
  if (!newDateFilter) return;
15918
15914
  if (set2) {
@@ -19863,7 +19859,6 @@ function ChartQueryBuilder({
19863
19859
  import_react46.SQLEditor,
19864
19860
  {
19865
19861
  isAdminEnabled: true,
19866
- showTableFormatOptions: true,
19867
19862
  showAccessControlOptions: true,
19868
19863
  showDateFieldOptions: true,
19869
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,10 +2160,9 @@ 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
- overridePost: true,
2167
2166
  convertDatatypes: true,
2168
2167
  limitThousand: !limitRegex.test(query)
2169
2168
  },
@@ -2223,7 +2222,7 @@ async function getVirtualTableData(clientId, query, databaseType, queryEndpoint,
2223
2222
  }
2224
2223
  }
2225
2224
  return queryEndpoint ? {
2226
- ...results.data.queryResults[0],
2225
+ ...results.queries.queryResults[0],
2227
2226
  ...queryAst,
2228
2227
  success: results.status === "success" ? true : false
2229
2228
  } : { ...results, ...queryAst };
@@ -8646,7 +8645,7 @@ function AdminProvider({
8646
8645
  {
8647
8646
  tenants,
8648
8647
  flags,
8649
- queryEndpoint: state.queryEndpoint,
8648
+ queryEndpoint: "https://quill-344421.uc.r.appspot.com/cloud/engine",
8650
8649
  withCredentials: state.withCredentials,
8651
8650
  queryHeaders: state.queryHeaders,
8652
8651
  publicKey: state.client._id,
@@ -15913,9 +15912,6 @@ function EditFiltersModal({
15913
15912
  ),
15914
15913
  [state.client?.allTenantTypes, state.client?.ownerTenantFields]
15915
15914
  );
15916
- useEffect22(() => {
15917
- console.log("New tenant filters:", newTenantFilters);
15918
- }, [newTenantFilters]);
15919
15915
  const assignDefaultInterval = (label, set2, loopStart, loopEnd) => {
15920
15916
  if (!newDateFilter) return;
15921
15917
  if (set2) {
@@ -19870,7 +19866,6 @@ function ChartQueryBuilder({
19870
19866
  SQLEditor2,
19871
19867
  {
19872
19868
  isAdminEnabled: true,
19873
- showTableFormatOptions: true,
19874
19869
  showAccessControlOptions: true,
19875
19870
  showDateFieldOptions: true,
19876
19871
  defaultQuery: query,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/admin",
3
- "version": "1.7.6",
3
+ "version": "1.8.1",
4
4
  "description": "Admin tools for Quill",
5
5
  "type": "module",
6
6
  "exports": {