@kong-ui-public/analytics-utilities 7.0.0 → 7.1.0

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.
@@ -176,11 +176,11 @@ const ws = [
176
176
  "12H",
177
177
  "24H",
178
178
  "7D"
179
- ], xs = ["basic", "advanced", "ai"], kt = {
179
+ ], xs = ["basic", "advanced", "ai"], It = {
180
180
  basic: new Set(er),
181
181
  advanced: new Set(nr),
182
182
  ai: new Set(ir)
183
- }, Es = (e, t) => t.filter((r) => "dimension" in r ? kt[e].has(r.dimension) : kt[e].has(r.field)), Ps = [
183
+ }, Es = (e, t) => t.filter((r) => "dimension" in r ? It[e].has(r.dimension) : It[e].has(r.field)), Ps = [
184
184
  "horizontal_bar",
185
185
  "vertical_bar",
186
186
  "gauge",
@@ -646,21 +646,21 @@ const ws = [
646
646
  },
647
647
  required: ["tiles", "gridSize"],
648
648
  additionalProperties: !1
649
- }, ur = 6048e5, pa = 864e5, wa = 60, _a = 3600, It = Symbol.for("constructDateFrom");
650
- function k(e, t) {
651
- return typeof e == "function" ? e(t) : e && typeof e == "object" && It in e ? e[It](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
649
+ }, ur = 6048e5, pa = 864e5, wa = 60, _a = 3600, kt = Symbol.for("constructDateFrom");
650
+ function I(e, t) {
651
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && kt in e ? e[kt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
652
652
  }
653
653
  function D(e, t) {
654
- return k(t || e, e);
654
+ return I(t || e, e);
655
655
  }
656
656
  function Ct(e, t, r) {
657
657
  const n = D(e, r == null ? void 0 : r.in);
658
- return isNaN(t) ? k(e, NaN) : (n.setDate(n.getDate() + t), n);
658
+ return isNaN(t) ? I(e, NaN) : (n.setDate(n.getDate() + t), n);
659
659
  }
660
660
  function ba(e, t, r) {
661
661
  const n = D(e, r == null ? void 0 : r.in);
662
- if (isNaN(t)) return k(e, NaN);
663
- const i = n.getDate(), o = k(e, n.getTime());
662
+ if (isNaN(t)) return I(e, NaN);
663
+ const i = n.getDate(), o = I(e, n.getTime());
664
664
  o.setMonth(n.getMonth() + t + 1, 0);
665
665
  const c = o.getDate();
666
666
  return i >= c ? o : (n.setFullYear(
@@ -682,9 +682,9 @@ function pe(e, t) {
682
682
  return H(e, { ...t, weekStartsOn: 1 });
683
683
  }
684
684
  function cr(e, t) {
685
- const r = D(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = k(r, 0);
685
+ const r = D(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = I(r, 0);
686
686
  i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
687
- const o = pe(i), c = k(r, 0);
687
+ const o = pe(i), c = I(r, 0);
688
688
  c.setFullYear(n, 0, 4), c.setHours(0, 0, 0, 0);
689
689
  const d = pe(c);
690
690
  return r.getTime() >= o.getTime() ? n + 1 : r.getTime() >= d.getTime() ? n : n - 1;
@@ -704,7 +704,7 @@ function Yt(e) {
704
704
  return r.setUTCFullYear(t.getFullYear()), +e - +r;
705
705
  }
706
706
  function Da(e, ...t) {
707
- const r = k.bind(
707
+ const r = I.bind(
708
708
  null,
709
709
  t.find((n) => typeof n == "object")
710
710
  );
@@ -723,7 +723,7 @@ function Oa(e, t, r) {
723
723
  return Math.round((d - f) / pa);
724
724
  }
725
725
  function Ma(e, t) {
726
- const r = cr(e, t), n = k(e, 0);
726
+ const r = cr(e, t), n = I(e, 0);
727
727
  return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), pe(n);
728
728
  }
729
729
  function va(e) {
@@ -818,12 +818,12 @@ const Na = {
818
818
  long: "MMMM do, y",
819
819
  medium: "MMM d, y",
820
820
  short: "MM/dd/yyyy"
821
- }, ka = {
821
+ }, Ia = {
822
822
  full: "h:mm:ss a zzzz",
823
823
  long: "h:mm:ss a z",
824
824
  medium: "h:mm:ss a",
825
825
  short: "h:mm a"
826
- }, Ia = {
826
+ }, ka = {
827
827
  full: "{{date}} 'at' {{time}}",
828
828
  long: "{{date}} 'at' {{time}}",
829
829
  medium: "{{date}}, {{time}}",
@@ -834,11 +834,11 @@ const Na = {
834
834
  defaultWidth: "full"
835
835
  }),
836
836
  time: Re({
837
- formats: ka,
837
+ formats: Ia,
838
838
  defaultWidth: "full"
839
839
  }),
840
840
  dateTime: Re({
841
- formats: Ia,
841
+ formats: ka,
842
842
  defaultWidth: "full"
843
843
  })
844
844
  }, Ya = {
@@ -1181,16 +1181,16 @@ function ui(e, t) {
1181
1181
  }
1182
1182
  function lr(e, t) {
1183
1183
  var h, g, M, S;
1184
- const r = D(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = oe(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((g = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((S = (M = i.locale) == null ? void 0 : M.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, c = k((t == null ? void 0 : t.in) || e, 0);
1184
+ const r = D(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = oe(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((g = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((S = (M = i.locale) == null ? void 0 : M.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, c = I((t == null ? void 0 : t.in) || e, 0);
1185
1185
  c.setFullYear(n + 1, 0, o), c.setHours(0, 0, 0, 0);
1186
- const d = H(c, t), f = k((t == null ? void 0 : t.in) || e, 0);
1186
+ const d = H(c, t), f = I((t == null ? void 0 : t.in) || e, 0);
1187
1187
  f.setFullYear(n, 0, o), f.setHours(0, 0, 0, 0);
1188
1188
  const y = H(f, t);
1189
1189
  return +r >= +d ? n + 1 : +r >= +y ? n : n - 1;
1190
1190
  }
1191
1191
  function ci(e, t) {
1192
1192
  var d, f, y, h;
1193
- const r = oe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (y = r.locale) == null ? void 0 : y.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = lr(e, t), o = k((t == null ? void 0 : t.in) || e, 0);
1193
+ const r = oe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (y = r.locale) == null ? void 0 : y.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = lr(e, t), o = I((t == null ? void 0 : t.in) || e, 0);
1194
1194
  return o.setFullYear(i, 0, n), o.setHours(0, 0, 0, 0), H(o, t);
1195
1195
  }
1196
1196
  function li(e, t) {
@@ -1827,8 +1827,8 @@ function _i(e, t, r) {
1827
1827
  }
1828
1828
  const bi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ti = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Di = /^'([^]*?)'?$/, Oi = /''/g, Mi = /[a-zA-Z]/;
1829
1829
  function fr(e, t, r) {
1830
- var h, g, M, S, P, I, ee, W;
1831
- const n = oe(), i = (r == null ? void 0 : r.locale) ?? n.locale ?? si, o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((g = (h = r == null ? void 0 : r.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((S = (M = n.locale) == null ? void 0 : M.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, c = (r == null ? void 0 : r.weekStartsOn) ?? ((I = (P = r == null ? void 0 : r.locale) == null ? void 0 : P.options) == null ? void 0 : I.weekStartsOn) ?? n.weekStartsOn ?? ((W = (ee = n.locale) == null ? void 0 : ee.options) == null ? void 0 : W.weekStartsOn) ?? 0, d = D(e, r == null ? void 0 : r.in);
1830
+ var h, g, M, S, P, k, ee, W;
1831
+ const n = oe(), i = (r == null ? void 0 : r.locale) ?? n.locale ?? si, o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((g = (h = r == null ? void 0 : r.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((S = (M = n.locale) == null ? void 0 : M.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, c = (r == null ? void 0 : r.weekStartsOn) ?? ((k = (P = r == null ? void 0 : r.locale) == null ? void 0 : P.options) == null ? void 0 : k.weekStartsOn) ?? n.weekStartsOn ?? ((W = (ee = n.locale) == null ? void 0 : ee.options) == null ? void 0 : W.weekStartsOn) ?? 0, d = D(e, r == null ? void 0 : r.in);
1832
1832
  if (!Sa(d))
1833
1833
  throw new RangeError("Invalid time value");
1834
1834
  let f = t.match(Ti).map((O) => {
@@ -1871,7 +1871,7 @@ function vi(e) {
1871
1871
  return t ? t[1].replace(Oi, "'") : e;
1872
1872
  }
1873
1873
  function Si(e, t) {
1874
- const r = D(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = r.getMonth(), o = k(r, 0);
1874
+ const r = D(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = r.getMonth(), o = I(r, 0);
1875
1875
  return o.setFullYear(n, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1876
1876
  }
1877
1877
  function xi() {
@@ -1894,8 +1894,8 @@ function hr(e, t, r) {
1894
1894
  return ba(e, -t, r);
1895
1895
  }
1896
1896
  function qt(e, t, r) {
1897
- const n = xi(), i = Ii(e, r.timeZone, r.locale ?? n.locale);
1898
- return "formatToParts" in i ? Ni(i, t) : ki(i, t);
1897
+ const n = xi(), i = ki(e, r.timeZone, r.locale ?? n.locale);
1898
+ return "formatToParts" in i ? Ni(i, t) : Ii(i, t);
1899
1899
  }
1900
1900
  function Ni(e, t) {
1901
1901
  const r = e.formatToParts(t);
@@ -1903,11 +1903,11 @@ function Ni(e, t) {
1903
1903
  if (r[n].type === "timeZoneName")
1904
1904
  return r[n].value;
1905
1905
  }
1906
- function ki(e, t) {
1906
+ function Ii(e, t) {
1907
1907
  const r = e.format(t).replace(/\u200E/g, ""), n = / [\w-+ ]+$/.exec(r);
1908
1908
  return n ? n[0].substr(1) : "";
1909
1909
  }
1910
- function Ii(e, t, r) {
1910
+ function ki(e, t, r) {
1911
1911
  return new Intl.DateTimeFormat(r ? [r.code, "en-US"] : void 0, {
1912
1912
  timeZone: t,
1913
1913
  timeZoneName: e
@@ -2341,7 +2341,7 @@ function ns(e, t, r) {
2341
2341
  function pr(e, t) {
2342
2342
  return -ue(e, t);
2343
2343
  }
2344
- function ks(e) {
2344
+ function Is(e) {
2345
2345
  return fr(e, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
2346
2346
  }
2347
2347
  function Jt(e, t = {}) {
@@ -2357,7 +2357,7 @@ function Jt(e, t = {}) {
2357
2357
  return console.error("Invalid value passed to formatTime", e), "(invalid date)";
2358
2358
  }
2359
2359
  }
2360
- function Is(e, t) {
2360
+ function ks(e, t) {
2361
2361
  return `${Jt(e.getTime())} - ${Jt(t.getTime(), { includeTZ: !0 })}`;
2362
2362
  }
2363
2363
  const Te = {
@@ -2484,7 +2484,7 @@ function os(e) {
2484
2484
  var De = { exports: {} };
2485
2485
  De.exports;
2486
2486
  (function(e, t) {
2487
- var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", f = "[object Date]", y = "[object Error]", h = "[object Function]", g = "[object GeneratorFunction]", M = "[object Map]", S = "[object Number]", P = "[object Object]", I = "[object Promise]", ee = "[object RegExp]", W = "[object Set]", O = "[object String]", b = "[object Symbol]", F = "[object WeakMap]", Qe = "[object ArrayBuffer]", ce = "[object DataView]", Ze = "[object Float32Array]", Be = "[object Float64Array]", Je = "[object Int8Array]", Ke = "[object Int16Array]", et = "[object Int32Array]", tt = "[object Uint8Array]", rt = "[object Uint8ClampedArray]", nt = "[object Uint16Array]", at = "[object Uint32Array]", Tr = /[\\^$.*+?()[\]{}|]/g, Dr = /\w*$/, Or = /^\[object .+?Constructor\]$/, Mr = /^(?:0|[1-9]\d*)$/, w = {};
2487
+ var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", f = "[object Date]", y = "[object Error]", h = "[object Function]", g = "[object GeneratorFunction]", M = "[object Map]", S = "[object Number]", P = "[object Object]", k = "[object Promise]", ee = "[object RegExp]", W = "[object Set]", O = "[object String]", b = "[object Symbol]", F = "[object WeakMap]", Qe = "[object ArrayBuffer]", ce = "[object DataView]", Ze = "[object Float32Array]", Be = "[object Float64Array]", Je = "[object Int8Array]", Ke = "[object Int16Array]", et = "[object Int32Array]", tt = "[object Uint8Array]", rt = "[object Uint8ClampedArray]", nt = "[object Uint16Array]", at = "[object Uint32Array]", Tr = /[\\^$.*+?()[\]{}|]/g, Dr = /\w*$/, Or = /^\[object .+?Constructor\]$/, Mr = /^(?:0|[1-9]\d*)$/, w = {};
2488
2488
  w[o] = w[c] = w[Qe] = w[ce] = w[d] = w[f] = w[Ze] = w[Be] = w[Je] = w[Ke] = w[et] = w[M] = w[S] = w[P] = w[ee] = w[W] = w[O] = w[b] = w[tt] = w[rt] = w[nt] = w[at] = !0, w[y] = w[h] = w[F] = !1;
2489
2489
  var vr = typeof ge == "object" && ge && ge.Object === Object && ge, Sr = typeof self == "object" && self && self.Object === Object && self, C = vr || Sr || Function("return this")(), it = t && !t.nodeType && t, st = it && !0 && e && !e.nodeType && e, xr = st && st.exports === it;
2490
2490
  function Er(a, s) {
@@ -2498,7 +2498,7 @@ De.exports;
2498
2498
  ;
2499
2499
  return a;
2500
2500
  }
2501
- function kr(a, s) {
2501
+ function Ir(a, s) {
2502
2502
  for (var u = -1, l = s.length, T = a.length; ++u < l; )
2503
2503
  a[T + u] = s[u];
2504
2504
  return a;
@@ -2508,7 +2508,7 @@ De.exports;
2508
2508
  u = s(u, a[T], T, a);
2509
2509
  return u;
2510
2510
  }
2511
- function Ir(a, s) {
2511
+ function kr(a, s) {
2512
2512
  for (var u = -1, l = Array(a); ++u < a; )
2513
2513
  l[u] = s(u);
2514
2514
  return l;
@@ -2661,7 +2661,7 @@ De.exports;
2661
2661
  }
2662
2662
  V.prototype.clear = ln, V.prototype.delete = dn, V.prototype.get = fn, V.prototype.has = hn, V.prototype.set = mn;
2663
2663
  function yn(a, s) {
2664
- var u = Ie(a) || Wn(a) ? Ir(a.length, String) : [], l = u.length, T = !!l;
2664
+ var u = ke(a) || Wn(a) ? kr(a.length, String) : [], l = u.length, T = !!l;
2665
2665
  for (var x in a)
2666
2666
  G.call(a, x) && !(T && (x == "length" || Rn(x, l))) && u.push(x);
2667
2667
  return u;
@@ -2685,9 +2685,9 @@ De.exports;
2685
2685
  return E;
2686
2686
  if (!me(a))
2687
2687
  return a;
2688
- var St = Ie(a);
2688
+ var St = ke(a);
2689
2689
  if (St) {
2690
- if (E = In(a), !s)
2690
+ if (E = kn(a), !s)
2691
2691
  return Pn(a, E);
2692
2692
  } else {
2693
2693
  var X = j(a), xt = X == h || X == g;
@@ -2709,7 +2709,7 @@ De.exports;
2709
2709
  if (Et)
2710
2710
  return Et;
2711
2711
  if (R.set(a, E), !St)
2712
- var Pt = u ? kn(a) : Ce(a);
2712
+ var Pt = u ? In(a) : Ce(a);
2713
2713
  return Nr(Pt || a, function(Ye, ye) {
2714
2714
  Pt && (ye = Ye, Ye = a[ye]), _t(E, ye, Ne(Ye, s, u, l, ye, a, R));
2715
2715
  }), E;
@@ -2719,7 +2719,7 @@ De.exports;
2719
2719
  }
2720
2720
  function wn(a, s, u) {
2721
2721
  var l = s(a);
2722
- return Ie(a) ? l : kr(l, u(a));
2722
+ return ke(a) ? l : Ir(l, u(a));
2723
2723
  }
2724
2724
  function _n(a) {
2725
2725
  return de.call(a);
@@ -2744,12 +2744,12 @@ De.exports;
2744
2744
  var u = new a.constructor(a.length);
2745
2745
  return a.copy(u), u;
2746
2746
  }
2747
- function ke(a) {
2747
+ function Ie(a) {
2748
2748
  var s = new a.constructor(a.byteLength);
2749
2749
  return new yt(s).set(new yt(a)), s;
2750
2750
  }
2751
2751
  function On(a, s) {
2752
- var u = s ? ke(a.buffer) : a.buffer;
2752
+ var u = s ? Ie(a.buffer) : a.buffer;
2753
2753
  return new a.constructor(u, a.byteOffset, a.byteLength);
2754
2754
  }
2755
2755
  function Mn(a, s, u) {
@@ -2768,7 +2768,7 @@ De.exports;
2768
2768
  return wt ? Object(wt.call(a)) : {};
2769
2769
  }
2770
2770
  function En(a, s) {
2771
- var u = s ? ke(a.buffer) : a.buffer;
2771
+ var u = s ? Ie(a.buffer) : a.buffer;
2772
2772
  return new a.constructor(u, a.byteOffset, a.length);
2773
2773
  }
2774
2774
  function Pn(a, s) {
@@ -2788,7 +2788,7 @@ De.exports;
2788
2788
  function Nn(a, s) {
2789
2789
  return bt(a, Tt(a), s);
2790
2790
  }
2791
- function kn(a) {
2791
+ function In(a) {
2792
2792
  return wn(a, Ce, Tt);
2793
2793
  }
2794
2794
  function he(a, s) {
@@ -2800,7 +2800,7 @@ De.exports;
2800
2800
  return bn(u) ? u : void 0;
2801
2801
  }
2802
2802
  var Tt = gt ? Me(gt, Object) : Un, j = _n;
2803
- (Se && j(new Se(new ArrayBuffer(1))) != ce || te && j(new te()) != M || xe && j(xe.resolve()) != I || Ee && j(new Ee()) != W || Pe && j(new Pe()) != F) && (j = function(a) {
2803
+ (Se && j(new Se(new ArrayBuffer(1))) != ce || te && j(new te()) != M || xe && j(xe.resolve()) != k || Ee && j(new Ee()) != W || Pe && j(new Pe()) != F) && (j = function(a) {
2804
2804
  var s = de.call(a), u = s == P ? a.constructor : void 0, l = u ? L(u) : void 0;
2805
2805
  if (l)
2806
2806
  switch (l) {
@@ -2809,7 +2809,7 @@ De.exports;
2809
2809
  case Ur:
2810
2810
  return M;
2811
2811
  case zr:
2812
- return I;
2812
+ return k;
2813
2813
  case Vr:
2814
2814
  return W;
2815
2815
  case $r:
@@ -2817,7 +2817,7 @@ De.exports;
2817
2817
  }
2818
2818
  return s;
2819
2819
  });
2820
- function In(a) {
2820
+ function kn(a) {
2821
2821
  var s = a.length, u = a.constructor(s);
2822
2822
  return s && typeof a[0] == "string" && G.call(a, "index") && (u.index = a.index, u.input = a.input), u;
2823
2823
  }
@@ -2828,7 +2828,7 @@ De.exports;
2828
2828
  var T = a.constructor;
2829
2829
  switch (s) {
2830
2830
  case Qe:
2831
- return ke(a);
2831
+ return Ie(a);
2832
2832
  case d:
2833
2833
  case f:
2834
2834
  return new T(+a);
@@ -2893,7 +2893,7 @@ De.exports;
2893
2893
  function Wn(a) {
2894
2894
  return Fn(a) && G.call(a, "callee") && (!Wr.call(a, "callee") || de.call(a) == o);
2895
2895
  }
2896
- var Ie = Array.isArray;
2896
+ var ke = Array.isArray;
2897
2897
  function Mt(a) {
2898
2898
  return a != null && jn(a.length) && !vt(a);
2899
2899
  }
@@ -3320,6 +3320,8 @@ const qs = (e, t) => {
3320
3320
  const y = {
3321
3321
  start_ms: i,
3322
3322
  end_ms: o,
3323
+ start: new Date(i).toISOString(),
3324
+ end: new Date(o).toISOString(),
3323
3325
  query_id: "12345",
3324
3326
  metric_names: [e.name],
3325
3327
  metric_units: {
@@ -3353,6 +3355,8 @@ const qs = (e, t) => {
3353
3355
  const d = {
3354
3356
  start_ms: n,
3355
3357
  end_ms: i,
3358
+ start: new Date(n).toISOString(),
3359
+ end: new Date(i).toISOString(),
3356
3360
  query_id: "12345",
3357
3361
  metric_names: e.map((f) => f.name),
3358
3362
  metric_units: e.reduce((f, y) => (f[y.name] = y.unit, f), {}),
@@ -3369,8 +3373,8 @@ const qs = (e, t) => {
3369
3373
  if (t) {
3370
3374
  const h = Object.keys(t), g = Object.values(t), M = (S, P) => {
3371
3375
  if (P === h.length) {
3372
- e.forEach((I) => {
3373
- S[I.name] = n.next(50, 500);
3376
+ e.forEach((k) => {
3377
+ S[k.name] = n.next(50, 500);
3374
3378
  }), d.push({
3375
3379
  version: "1.0",
3376
3380
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -3378,8 +3382,8 @@ const qs = (e, t) => {
3378
3382
  });
3379
3383
  return;
3380
3384
  }
3381
- g[P].forEach((I) => {
3382
- M({ ...S, [h[P]]: I }, P + 1);
3385
+ g[P].forEach((k) => {
3386
+ M({ ...S, [h[P]]: k }, P + 1);
3383
3387
  });
3384
3388
  };
3385
3389
  M({}, 0);
@@ -3405,6 +3409,8 @@ const qs = (e, t) => {
3405
3409
  const y = {
3406
3410
  start_ms: i,
3407
3411
  end_ms: o,
3412
+ start: new Date(i).toISOString(),
3413
+ end: new Date(o).toISOString(),
3408
3414
  query_id: "12345",
3409
3415
  metric_names: e.map((h) => h.name),
3410
3416
  metric_units: e.reduce((h, g) => (h[g.name] = g.unit, h), {}),
@@ -3440,7 +3446,7 @@ export {
3440
3446
  _r as ceilToNearestTimeGrain,
3441
3447
  Ns as dashboardConfigSchema,
3442
3448
  Ps as dashboardTileTypes,
3443
- kt as datasourceToFilterableDimensions,
3449
+ It as datasourceToFilterableDimensions,
3444
3450
  Gs as datePickerSelectionToTimeframe,
3445
3451
  ia as doughnutChartSchema,
3446
3452
  ys as dstOffsetHours,
@@ -3454,9 +3460,9 @@ export {
3454
3460
  vs as filterableRequestMetrics,
3455
3461
  Ms as filterableRequestWildcardDimensions,
3456
3462
  is as floorToNearestTimeGrain,
3457
- ks as formatISOTimeWithTZ,
3463
+ Is as formatISOTimeWithTZ,
3458
3464
  Jt as formatTime,
3459
- Is as formatTimeRange,
3465
+ ks as formatTimeRange,
3460
3466
  aa as gaugeChartSchema,
3461
3467
  Ls as generateCrossSectionalData,
3462
3468
  js as generateMultipleMetricTimeSeriesData,