@conboai/app.db.query 0.3.86 → 0.3.87

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.
@@ -111801,23 +111801,24 @@ function Xje({ siteId: e, UserProfile: t, onHomeClick: n, baseUrl: r }) {
111801
111801
  Vo.extend(Gv);
111802
111802
  Vo.extend(qv);
111803
111803
  const IAe = (e, t, n) => {
111804
+ var s;
111804
111805
  const r = [
111805
111806
  { headerName: "Action ID", field: "id" },
111806
111807
  { headerName: "Conbo Key", field: "conbo_key" },
111807
111808
  {
111808
111809
  headerName: "Start",
111809
111810
  field: "start_time",
111810
- renderCell: (s) => Vo(Jc(s, e)).tz(e).format("DD/MM/YYYY, HH:mm")
111811
+ renderCell: (l) => Vo(Jc(l, e)).tz(e).format("DD/MM/YYYY, HH:mm")
111811
111812
  },
111812
111813
  {
111813
111814
  headerName: "End",
111814
111815
  field: "end_time",
111815
- renderCell: (s) => s && Vo(Jc(s, e)).tz(e).format("DD/MM/YYYY, HH:mm")
111816
+ renderCell: (l) => l && Vo(Jc(l, e)).tz(e).format("DD/MM/YYYY, HH:mm")
111816
111817
  },
111817
111818
  {
111818
111819
  headerName: "Duration",
111819
111820
  field: "duration",
111820
- renderCell: () => n.end_time ? j$(
111821
+ renderCell: () => n != null && n.end_time ? j$(
111821
111822
  n == null ? void 0 : n.start_time,
111822
111823
  n == null ? void 0 : n.end_time
111823
111824
  ) : "0 sec"
@@ -111825,23 +111826,23 @@ const IAe = (e, t, n) => {
111825
111826
  {
111826
111827
  headerName: "Action",
111827
111828
  field: "action_type",
111828
- renderCell: (s) => s && yp(s)
111829
+ renderCell: (l) => l && yp(l)
111829
111830
  },
111830
111831
  {
111831
111832
  headerName: "Feed Name",
111832
111833
  field: "assigned_feed_id",
111833
- renderCell: (s) => {
111834
- var l;
111835
- return (l = t.find((c) => c.id === s)) == null ? void 0 : l.name;
111834
+ renderCell: (l) => {
111835
+ var c;
111836
+ return (c = t.find((u) => u.id === l)) == null ? void 0 : c.name;
111836
111837
  }
111837
111838
  }
111838
- ], i = Object.keys(n).filter(
111839
- (s) => !r.some((l) => l.field === s)
111840
- ).map((s) => ({
111841
- headerName: yp(s),
111842
- field: s,
111843
- renderCell: (l) => l
111844
- }));
111839
+ ], o = n && Object.keys(n), i = ((s = o == null ? void 0 : o.filter(
111840
+ (l) => !r.some((c) => c.field === l)
111841
+ )) == null ? void 0 : s.map((l) => ({
111842
+ headerName: yp(l),
111843
+ field: l,
111844
+ renderCell: (c) => c
111845
+ }))) || [];
111845
111846
  return [...r, ...i];
111846
111847
  }, DAe = {
111847
111848
  cargo: "",
@@ -1,10 +1,2 @@
1
1
 
2
- export declare const verticalTableColumnDefs: (timezone: string, feeds: any[], verticalData: any) => ({
3
- headerName: string;
4
- field: string;
5
- renderCell?: undefined;
6
- } | {
7
- headerName: string;
8
- field: string;
9
- renderCell: (value: string) => any;
10
- })[];
2
+ export declare const verticalTableColumnDefs: (timezone: string, feeds: any[], verticalData: any) => any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.3.86",
3
+ "version": "0.3.87",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",