@bluecopa/react 0.1.15 → 0.1.16

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-Cm3eEPri.js";
2
- import { g as d, c as f, a as e } from "./index-CAJ9zZWS.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./VREWMQAW-BplSZQXY.js";
2
+ import { g as d, c as f, a as e } from "./index-CvA42mHx.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-Cm3eEPri.js";
2
- import { g as v, c as C, a as e } from "./index-CAJ9zZWS.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-BplSZQXY.js";
2
+ import { g as v, c as C, a as e } from "./index-CvA42mHx.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-CAJ9zZWS.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-CvA42mHx.js";
5
5
  var _s = (e) => e != null, qs = (e) => e.filter(_s);
6
6
  function Rs(e) {
7
7
  return (...t) => {
@@ -0,0 +1,20 @@
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ export interface CreateStatementRunParams {
3
+ statementId: string;
4
+ viewId?: string;
5
+ runId?: string;
6
+ options?: {
7
+ name?: string;
8
+ columnFilters?: any[];
9
+ };
10
+ }
11
+ export interface CreateStatementRunResult {
12
+ runId: string;
13
+ }
14
+ /**
15
+ * Custom hook for creating a new statement run using TanStack React Query
16
+ * @param options - Mutation options
17
+ * @returns useMutation for creating a new statement run
18
+ */
19
+ export declare function useCreateStatementRun(options?: {}): UseMutationResult<CreateStatementRunResult, Error, CreateStatementRunParams>;
20
+ //# sourceMappingURL=useCreateStatementRun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateStatementRun.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateStatementRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,KAAK,GACX,iBAAiB,CAAC,wBAAwB,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAS9E"}
@@ -0,0 +1,12 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { BaseQueryOptions } from '../types';
3
+ export interface UseGetRunResultByIdOptions extends BaseQueryOptions {
4
+ }
5
+ /**
6
+ * Custom hook for fetching workflow run result by ID using TanStack React Query
7
+ * @param runId - The ID of the statement run
8
+ * @param options - Query options including enabled state and cache settings
9
+ * @returns UseQueryResult with workflow run result
10
+ */
11
+ export declare function useGetRunResultById(runId: string | null | undefined, options?: UseGetRunResultByIdOptions): UseQueryResult<any, Error>;
12
+ //# sourceMappingURL=useGetRunResultById.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetRunResultById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetRunResultById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;CAAG;AAEvE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE,0BAA+B,GACvC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAqB5B"}
@@ -0,0 +1,12 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { BaseQueryOptions } from '../types';
3
+ export interface UseGetRunsByViewIdOptions extends BaseQueryOptions {
4
+ }
5
+ /**
6
+ * Custom hook for fetching runs by view ID using TanStack React Query
7
+ * @param viewId - The ID of the statement view
8
+ * @param options - Query options including enabled state and cache settings
9
+ * @returns UseQueryResult with array of runs/results for the view
10
+ */
11
+ export declare function useGetRunsByViewId(viewId: string | null | undefined, options?: UseGetRunsByViewIdOptions): UseQueryResult<any[], Error>;
12
+ //# sourceMappingURL=useGetRunsByViewId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetRunsByViewId.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetRunsByViewId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;CAAG;AAEtE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,GAAE,yBAA8B,GACtC,cAAc,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAqB9B"}
@@ -0,0 +1,14 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { BaseQueryOptions } from '../types';
3
+ export interface UseGetStatementDataOptions extends BaseQueryOptions {
4
+ }
5
+ /**
6
+ * Custom hook for fetching statement data using TanStack React Query
7
+ * @param statementId - The ID of the statement workbook
8
+ * @param viewId - Optional view ID. If not provided, uses the default view
9
+ * @param runId - Optional run ID. If not provided, uses the latest run
10
+ * @param options - Query options including enabled state and cache settings
11
+ * @returns UseQueryResult with statement data
12
+ */
13
+ export declare function useGetStatementData(statementId: string | null | undefined, viewId?: string | null | undefined, runId?: string | null | undefined, options?: UseGetStatementDataOptions): UseQueryResult<any, Error>;
14
+ //# sourceMappingURL=useGetStatementData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetStatementData.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetStatementData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;CAAG;AAEvE;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,GAAE,0BAA+B,GACvC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAyB5B"}
@@ -0,0 +1,12 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { BaseQueryOptions } from '../types';
3
+ export interface UseGetViewByIdOptions extends BaseQueryOptions {
4
+ }
5
+ /**
6
+ * Custom hook for fetching statement view by ID using TanStack React Query
7
+ * @param viewId - The ID of the statement view
8
+ * @param options - Query options including enabled state and cache settings
9
+ * @returns UseQueryResult with statement view workflow
10
+ */
11
+ export declare function useGetViewById(viewId: string | null | undefined, options?: UseGetViewByIdOptions): UseQueryResult<any, Error>;
12
+ //# sourceMappingURL=useGetViewById.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetViewById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetViewById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;CAAG;AAElE;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,GAAE,qBAA0B,GAClC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAqB5B"}
@@ -0,0 +1,12 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { BaseQueryOptions } from '../types';
3
+ export interface UseGetViewsBySheetIdOptions extends BaseQueryOptions {
4
+ }
5
+ /**
6
+ * Custom hook for fetching statement views by sheet ID using TanStack React Query
7
+ * @param sheetId - The ID of the statement sheet
8
+ * @param options - Query options including enabled state and cache settings
9
+ * @returns UseQueryResult with array of statement views
10
+ */
11
+ export declare function useGetViewsBySheetId(sheetId: string | null | undefined, options?: UseGetViewsBySheetIdOptions): UseQueryResult<any[], Error>;
12
+ //# sourceMappingURL=useGetViewsBySheetId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetViewsBySheetId.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetViewsBySheetId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;CAAG;AAExE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,OAAO,GAAE,2BAAgC,GACxC,cAAc,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAqB9B"}