autoql-fe-utils 1.0.51 → 1.0.52

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.ts CHANGED
@@ -2094,12 +2094,13 @@ declare const fetchAutocomplete: ({ suggestion, domain, apiKey, token, }?: {
2094
2094
  apiKey?: string;
2095
2095
  token?: string;
2096
2096
  }) => Promise<axios.AxiosResponse<any, any>>;
2097
- declare const fetchVLAutocomplete: ({ suggestion, domain, token, apiKey, context, cancelToken, }?: {
2097
+ declare const fetchVLAutocomplete: ({ suggestion, domain, token, apiKey, context, filter, cancelToken, }?: {
2098
2098
  suggestion?: string;
2099
2099
  domain?: string;
2100
2100
  apiKey?: string;
2101
2101
  token?: string;
2102
2102
  context?: string;
2103
+ filter?: string;
2103
2104
  cancelToken?: any;
2104
2105
  }) => Promise<axios.AxiosResponse<any, any>>;
2105
2106
  declare const fetchFilters: ({ apiKey, token, domain, }?: {
@@ -14091,6 +14091,15 @@
14091
14091
  PrecisionTypes2["MINUTE"] = "MINUTE";
14092
14092
  return PrecisionTypes2;
14093
14093
  })(PrecisionTypes || {});
14094
+ var DateStringPrecisionTypes = /* @__PURE__ */ ((DateStringPrecisionTypes2) => {
14095
+ DateStringPrecisionTypes2["DOW"] = "DOW";
14096
+ DateStringPrecisionTypes2["MONTHONLY"] = "MONTHONLY";
14097
+ DateStringPrecisionTypes2["WEEKONLY"] = "WEEKONLY";
14098
+ DateStringPrecisionTypes2["QUARTERONLY"] = "QUARTERONLY";
14099
+ DateStringPrecisionTypes2["HOUR"] = "HOUR";
14100
+ DateStringPrecisionTypes2["MINUTE"] = "MINUTE";
14101
+ return DateStringPrecisionTypes2;
14102
+ })(DateStringPrecisionTypes || {});
14094
14103
  var AggTypes = /* @__PURE__ */ ((AggTypes2) => {
14095
14104
  AggTypes2["SUM"] = "SUM";
14096
14105
  AggTypes2["AVG"] = "AVG";
@@ -16403,30 +16412,39 @@
16403
16412
  let formattedValue = value;
16404
16413
  try {
16405
16414
  switch (col.precision) {
16406
- case "DOW": {
16415
+ case "DOW" /* DOW */: {
16407
16416
  formattedValue = formatDOW(value, col);
16408
16417
  break;
16409
16418
  }
16410
- case "HOUR": {
16419
+ case "HOUR" /* HOUR */: {
16411
16420
  const dayjsTime = dayjsWithPlugins_default.utc(value, "THH:mm:ss.SSSZ").utc();
16412
16421
  if (dayjsTime.isValid()) {
16413
16422
  formattedValue = dayjsTime.format("h:00A");
16414
16423
  }
16415
16424
  break;
16416
16425
  }
16417
- case "MINUTE": {
16426
+ case "MINUTE" /* MINUTE */: {
16418
16427
  const dayjsTime = dayjsWithPlugins_default.utc(value, "THH:mm:ss.SSSZ").utc();
16419
16428
  if (dayjsTime.isValid()) {
16420
16429
  formattedValue = dayjsTime.format("h:mmA");
16421
16430
  }
16422
16431
  break;
16423
16432
  }
16424
- case "MONTH": {
16425
- formattedValue = value;
16433
+ case "MONTHONLY" /* MONTHONLY */: {
16434
+ const monthNumber = parseInt(value) - 1;
16435
+ const monthDayjs = dayjsWithPlugins_default().month(monthNumber);
16436
+ if (monthDayjs.isValid()) {
16437
+ formattedValue = monthDayjs.format("MMMM");
16438
+ }
16439
+ break;
16440
+ }
16441
+ case "WEEKONLY" /* WEEKONLY */: {
16442
+ break;
16443
+ }
16444
+ case "QUARTERONLY" /* QUARTERONLY */: {
16426
16445
  break;
16427
16446
  }
16428
16447
  default: {
16429
- formattedValue = value;
16430
16448
  break;
16431
16449
  }
16432
16450
  }
@@ -27749,6 +27767,7 @@
27749
27767
  token,
27750
27768
  apiKey,
27751
27769
  context,
27770
+ filter: filter3,
27752
27771
  cancelToken
27753
27772
  } = {}) => {
27754
27773
  var _a;
@@ -27761,7 +27780,7 @@
27761
27780
  }
27762
27781
  const url2 = `${domain}/autoql/api/v1/query/vlautocomplete?text=${encodeURIComponent(
27763
27782
  text
27764
- )}&key=${apiKey}&context=${context}`;
27783
+ )}&key=${apiKey}&context=${context}&filter=${filter3}`;
27765
27784
  const config = {
27766
27785
  headers: {
27767
27786
  Authorization: `Bearer ${token}`