@bluecopa/react 0.1.20 → 0.1.22

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.
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./VREWMQAW-B4dNKSCX.js";
2
- import { g as d, c as f, a as e } from "./index-BAMIAC7E.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./VREWMQAW-3nThLskn.js";
2
+ import { g as d, c as f, a as e } from "./index-GIGSuKL7.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./VREWMQAW-B4dNKSCX.js";
2
- import { g as v, c as C, a as e } from "./index-BAMIAC7E.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./VREWMQAW-3nThLskn.js";
2
+ import { g as v, c as C, a as e } from "./index-GIGSuKL7.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,7 +1,7 @@
1
1
  var bs = Object.defineProperty;
2
2
  var ps = (e, t, n) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var _e = (e, t, n) => ps(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { b as xe, d as z, o as Ft, e as N, c as D, a as m, P as qo, S as B, t as _, i as k, f as V, h as F, j as ws, k as rr, u as $e, l as j, s as Vn, m as Gn, n as ut, p as A, q as xs, r as an, v as Ne, w as $s, x as _t, y as zt, z as Cs, A as Ss, B as xn, F as ks, C as Kr, D as Kt, $ as Ro, E as Es, G as Ds, H as W, I as Br, J as Ms, K as As, L as or, M as Fs, N as Ts, O as Rn, Q as Is, R as Ps, T as oe, U as Ls, V as Os } from "./index-BAMIAC7E.js";
4
+ import { b as xe, d as z, o as Ft, e as N, c as D, a as m, P as qo, S as B, t as _, i as k, f as V, h as F, j as ws, k as rr, u as $e, l as j, s as Vn, m as Gn, n as ut, p as A, q as xs, r as an, v as Ne, w as $s, x as _t, y as zt, z as Cs, A as Ss, B as xn, F as ks, C as Kr, D as Kt, $ as Ro, E as Es, G as Ds, H as W, I as Br, J as Ms, K as As, L as or, M as Fs, N as Ts, O as Rn, Q as Is, R as Ps, T as oe, U as Ls, V as Os } from "./index-GIGSuKL7.js";
5
5
  var _s = (e) => e != null, qs = (e) => e.filter(_s);
6
6
  function Rs(e) {
7
7
  return (...t) => {
@@ -1,21 +1,5 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- export interface AuditRecord {
3
- source: 'UI' | 'BACKEND';
4
- userId: string;
5
- entityId: string;
6
- entityType: string;
7
- entitySubType?: string;
8
- action: 'CREATE' | 'UPDATE' | 'DELETE';
9
- oldValue?: string;
10
- newValue?: string;
11
- additionalDetails?: any;
12
- eventType: 'WORKFLOW' | 'API' | 'PROCESS' | 'DELEGATED_TASK';
13
- eventId: string;
14
- eventTimestamp: string;
15
- }
16
- export interface CreateAuditLogRequest {
17
- auditRecords: AuditRecord[];
18
- }
2
+ import { CreateAuditLogRequest } from '@bluecopa/core';
19
3
  export interface CreateAuditLogResponse {
20
4
  success: boolean;
21
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateAuditLog.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateAuditLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,IAAI,GAAG,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,SAAS,EAAE,UAAU,GAAG,KAAK,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,KAAK,GACX,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAOzE"}
1
+ {"version":3,"file":"useCreateAuditLog.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateAuditLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAW,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,KAAK,GACX,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAOzE"}
@@ -1,14 +1,5 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- export interface FileUploadRequest {
3
- path?: string;
4
- contentType?: string;
5
- method?: string;
6
- data: any;
7
- uploadType?: string;
8
- }
9
- export interface FileUploadResponse {
10
- fileId: string;
11
- }
2
+ import { FileUploadRequest, FileUploadResponse } from '@bluecopa/core';
12
3
  /**
13
4
  * Custom hook for uploading files to S3 using TanStack React Query
14
5
  * @param options - Mutation options
@@ -1 +1 @@
1
- {"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../src/hooks/useFileUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,KAAK,GACX,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAQjE"}
1
+ {"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../src/hooks/useFileUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAW,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,KAAK,GACX,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAQjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useGetFormById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetFormById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAItE;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,KAAK,GACX,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAY5B"}
1
+ {"version":3,"file":"useGetFormById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetFormById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGtE;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,KAAK,GACX,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAY5B"}
@@ -1,14 +1,5 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- export interface RunReconRequest {
3
- workflowId: string;
4
- runId?: string;
5
- fullRefresh?: boolean;
6
- }
7
- export interface RunReconResponse {
8
- success: boolean;
9
- data?: any;
10
- message?: string;
11
- }
2
+ import { RunReconRequest, RunReconResponse } from '@bluecopa/core';
12
3
  /**
13
4
  * Custom hook for running a reconciliation workflow using TanStack React Query
14
5
  * @param options - Mutation options
@@ -1 +1 @@
1
- {"version":3,"file":"useRunRecon.d.ts","sourceRoot":"","sources":["../../src/hooks/useRunRecon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,OAAO,KAAK,GACX,iBAAiB,CAAC,gBAAgB,EAAE,KAAK,EAAE,eAAe,CAAC,CAQ7D"}
1
+ {"version":3,"file":"useRunRecon.d.ts","sourceRoot":"","sources":["../../src/hooks/useRunRecon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAW,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAG5E;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,OAAO,KAAK,GACX,iBAAiB,CAAC,gBAAgB,EAAE,KAAK,EAAE,eAAe,CAAC,CAQ7D"}
@@ -12556,9 +12556,9 @@ const S1 = async (t, e) => {
12556
12556
  variable: t,
12557
12557
  limit: (e == null ? void 0 : e.limit) || 1e3
12558
12558
  });
12559
- if (!(l != null && l.data))
12559
+ if (!l)
12560
12560
  throw new Error("No data returned from API");
12561
- return { data: l.data };
12561
+ return console.log("Data returned from API", l), { data: l };
12562
12562
  } catch (a) {
12563
12563
  const l = ((s = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : s.message) || a.message || "An unexpected error occurred while fetching data for the dataset", c = ((o = a.response) == null ? void 0 : o.status) || 500;
12564
12564
  throw { message: l, status: c };
@@ -15847,7 +15847,7 @@ var bx = (t, e = !1) => {
15847
15847
  const e = hm(() => {
15848
15848
  const n = this, [s] = y(this, Ks), [o] = y(this, zs), [a] = y(this, Qs), [l] = y(this, Js), [c] = y(this, Gs);
15849
15849
  let d;
15850
- return y(this, Ys) ? d = y(this, Ys) : (d = fm(() => import("./COOQDZLH-Bu8iSctF.js")), U(this, Ys, d)), Im(y(this, mo), y(this, Hs)), lm(d, cm({
15850
+ return y(this, Ys) ? d = y(this, Ys) : (d = fm(() => import("./COOQDZLH-B6T1HSvE.js")), U(this, Ys, d)), Im(y(this, mo), y(this, Hs)), lm(d, cm({
15851
15851
  get queryFlavor() {
15852
15852
  return y(n, po);
15853
15853
  },
@@ -15941,7 +15941,7 @@ var bx = (t, e = !1) => {
15941
15941
  const e = hm(() => {
15942
15942
  const n = this, [s] = y(this, ei), [o] = y(this, ti), [a] = y(this, ni), [l] = y(this, ri), [c] = y(this, Xs), [d] = y(this, si);
15943
15943
  let g;
15944
- return y(this, ii) ? g = y(this, ii) : (g = fm(() => import("./MU7WGUJF-C8rNWfUr.js")), U(this, ii, g)), Im(y(this, wo), y(this, Zs)), lm(g, cm({
15944
+ return y(this, ii) ? g = y(this, ii) : (g = fm(() => import("./MU7WGUJF-shFflH8w.js")), U(this, ii, g)), Im(y(this, wo), y(this, Zs)), lm(g, cm({
15945
15945
  get queryFlavor() {
15946
15946
  return y(n, yo);
15947
15947
  },
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { X as s, aj as t, aN as u, aO as o, aP as i, aQ as r, aR as n, W as l, a6 as G, aI as d, aG as k, a7 as p, _ as m, a8 as b, Z as c, a3 as y, ax as D, aw as I, aK as T, aJ as B, aH as C, a0 as R, a9 as S, aa as f, aF as W, aE as g, aD as h, ao as w, ab as U, ac as F, ad as A, ae as P, af as v, ay as L, ag as M, ah as Q, az as V, ai as x, ak as H, al as O, am as j, an as q, aL as z, Y as E, a1 as J, aB as K, aM as N, ap as X, aq as Y, aC as Z, ar as _, aA as $, a4 as aa, as as ea, at as sa, a5 as ta, a2 as ua, au as oa, av as ia } from "./index-BAMIAC7E.js";
1
+ import { X as s, aj as t, aN as u, aO as o, aP as i, aQ as r, aR as n, W as l, a6 as G, aI as d, aG as k, a7 as p, _ as m, a8 as b, Z as c, a3 as y, ax as D, aw as I, aK as T, aJ as B, aH as C, a0 as R, a9 as S, aa as f, aF as W, aE as g, aD as h, ao as w, ab as U, ac as F, ad as A, ae as P, af as v, ay as L, ag as M, ah as Q, az as V, ai as x, ak as H, al as O, am as j, an as q, aL as z, Y as E, a1 as J, aB as K, aM as N, ap as X, aq as Y, aC as Z, ar as _, aA as $, a4 as aa, as as ea, at as sa, a5 as ta, a2 as ua, au as oa, av as ia } from "./index-GIGSuKL7.js";
2
2
  export {
3
3
  s as ReactQueryDevtools,
4
4
  t as WorkflowStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/react",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Bluecopa react library with TanStack Query integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
@@ -27,7 +27,7 @@
27
27
  "react-dom": ">=18.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@bluecopa/core": "0.1.18",
30
+ "@bluecopa/core": "0.1.20",
31
31
  "@tanstack/react-query": "5.59.0",
32
32
  "@tanstack/react-query-devtools": "5.59.0"
33
33
  },