autoql-fe-utils 1.11.0 → 1.11.2

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.d.mts CHANGED
@@ -1544,12 +1544,13 @@ declare const fetchExploreQueries: ({ keywords, pageSize, pageNumber, domain, ap
1544
1544
  token?: string;
1545
1545
  skipQueryValidation?: boolean;
1546
1546
  }) => Promise<axios.AxiosResponse<any, any, {}>>;
1547
- declare const reportProblem: ({ message, queryId, domain, apiKey, token, }?: {
1547
+ declare const reportProblem: ({ message, queryId, domain, apiKey, token, isCorrect }?: {
1548
1548
  message?: string;
1549
1549
  queryId?: string;
1550
1550
  domain?: string;
1551
1551
  apiKey?: string;
1552
1552
  token?: string;
1553
+ isCorrect?: boolean;
1553
1554
  }) => Promise<axios.AxiosResponse<any, any, {}>>;
1554
1555
  declare const fetchLLMSummary: ({ data, queryID, domain, apiKey, token, }?: {
1555
1556
  data?: string;
package/dist/index.d.ts CHANGED
@@ -1544,12 +1544,13 @@ declare const fetchExploreQueries: ({ keywords, pageSize, pageNumber, domain, ap
1544
1544
  token?: string;
1545
1545
  skipQueryValidation?: boolean;
1546
1546
  }) => Promise<axios.AxiosResponse<any, any, {}>>;
1547
- declare const reportProblem: ({ message, queryId, domain, apiKey, token, }?: {
1547
+ declare const reportProblem: ({ message, queryId, domain, apiKey, token, isCorrect }?: {
1548
1548
  message?: string;
1549
1549
  queryId?: string;
1550
1550
  domain?: string;
1551
1551
  apiKey?: string;
1552
1552
  token?: string;
1553
+ isCorrect?: boolean;
1553
1554
  }) => Promise<axios.AxiosResponse<any, any, {}>>;
1554
1555
  declare const fetchLLMSummary: ({ data, queryID, domain, apiKey, token, }?: {
1555
1556
  data?: string;
@@ -15320,6 +15320,9 @@
15320
15320
  var isISODate = (str) => {
15321
15321
  var dateString = str;
15322
15322
  dateString = getDateNoQuotes(dateString);
15323
+ if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
15324
+ return false;
15325
+ }
15323
15326
  if (/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d{1,3})?$/.test(dateString)) {
15324
15327
  return true;
15325
15328
  }
@@ -17301,6 +17304,16 @@
17301
17304
  columnIndexConfig.numberColumnIndices2 = numberColumnIndices2;
17302
17305
  columnIndexConfig.numberColumnIndex2 = numberColumnIndex2;
17303
17306
  }
17307
+ if (usePivotData && isNumber(columnIndexConfig.legendColumnIndex) && isNumber(columnIndexConfig.numberColumnIndex) && columnIndexConfig.legendColumnIndex === columnIndexConfig.numberColumnIndex) {
17308
+ console.debug(
17309
+ "Table config invalid: legendColumnIndex and numberColumnIndex are the same.",
17310
+ {
17311
+ legendColumnIndex: columnIndexConfig.legendColumnIndex,
17312
+ numberColumnIndex: columnIndexConfig.numberColumnIndex
17313
+ }
17314
+ );
17315
+ return false;
17316
+ }
17304
17317
  return true;
17305
17318
  } catch (error) {
17306
17319
  console.debug("Saved table config was not valid for response:", error == null ? void 0 : error.message);
@@ -20481,8 +20494,6 @@
20481
20494
  if (maxElements && aggregatedData.length > maxElements) {
20482
20495
  aggregatedData = aggregateOtherCategory(aggregatedData, columnIndexConfig, maxElements);
20483
20496
  }
20484
- if (useBuckets) {
20485
- }
20486
20497
  aggregatedData = sortDataByColumn(aggregatedData, columns, aggColumn, "asc");
20487
20498
  return aggregatedData;
20488
20499
  };
@@ -30606,7 +30617,8 @@
30606
30617
  queryId,
30607
30618
  domain,
30608
30619
  apiKey,
30609
- token
30620
+ token,
30621
+ isCorrect = false
30610
30622
  } = {}) => {
30611
30623
  if (!queryId) {
30612
30624
  return Promise.reject(new Error("No query ID supplied" /* NO_QUERY_ID_SUPPLIED */));
@@ -30621,7 +30633,7 @@
30621
30633
  }
30622
30634
  };
30623
30635
  const data = {
30624
- is_correct: false,
30636
+ is_correct: isCorrect,
30625
30637
  message
30626
30638
  };
30627
30639
  return axios_default.put(url2, data, config).then((response) => Promise.resolve(response)).catch((error) => {