@bluecopa/react 0.1.16 → 0.1.17

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-BplSZQXY.js";
2
- import { g as d, c as f, a as e } from "./index-CvA42mHx.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./VREWMQAW-C9qDzx3Z.js";
2
+ import { g as d, c as f, a as e } from "./index-DpZyX0HO.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-BplSZQXY.js";
2
- import { g as v, c as C, a as e } from "./index-CvA42mHx.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-C9qDzx3Z.js";
2
+ import { g as v, c as C, a as e } from "./index-DpZyX0HO.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-CvA42mHx.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-DpZyX0HO.js";
5
5
  var _s = (e) => e != null, qs = (e) => e.filter(_s);
6
6
  function Rs(e) {
7
7
  return (...t) => {
@@ -1 +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"}
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,CAO9E"}
@@ -1 +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"}
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,CAmB5B"}
@@ -1 +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"}
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,CAmB9B"}
@@ -1 +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"}
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,CAuB5B"}
@@ -1 +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"}
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,CAmB5B"}
@@ -1 +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"}
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,CAmB9B"}
@@ -1,11 +1,38 @@
1
- import { copaApi } from '@bluecopa/core';
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ export type WorkflowStatusRequest = ReadonlyArray<{
3
+ instanceId: string;
4
+ parentId: string;
5
+ }>;
6
+ export declare enum WorkflowStatus {
7
+ Succeeded = "Succeeded",
8
+ Failed = "Failed",
9
+ Running = "Running",
10
+ NotFound = "NotFound"
11
+ }
12
+ export type StepInfo = {
13
+ stepId: string;
14
+ name: string;
15
+ stepOutput: Record<string, any>;
16
+ };
17
+ export type WorkflowStatusResponse = {
18
+ instanceId: string;
19
+ processName: string;
20
+ parentId: string;
21
+ status: WorkflowStatus;
22
+ message: string;
23
+ data: {
24
+ completed: StepInfo[];
25
+ running: StepInfo[];
26
+ failed?: StepInfo[];
27
+ };
28
+ completedAt: string;
29
+ error?: string;
30
+ };
31
+ export type WorkflowStatusResponses = ReadonlyArray<WorkflowStatusResponse>;
2
32
  /**
3
33
  * Custom hook for getting workflow instance status using TanStack React Query
4
34
  * @param options - Mutation options
5
35
  * @returns useMutation for getting workflow instance status
6
36
  */
7
- export declare function useGetWorkflowInstanceStatusById(options?: {}): import('@tanstack/react-query').UseMutationResult<copaApi.workflow.WorkflowStatusResponses, Error, {
8
- instanceId: string;
9
- parentId: string;
10
- }[], unknown>;
37
+ export declare function useGetWorkflowInstanceStatusById(options?: {}): UseMutationResult<WorkflowStatusResponses, Error, WorkflowStatusRequest>;
11
38
  //# sourceMappingURL=useGetWorkflowInstanceStatusById.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGetWorkflowInstanceStatusById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetWorkflowInstanceStatusById.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,KAAK;gBAEf,MAAM;cAAY,MAAM;cAOrE"}
1
+ {"version":3,"file":"useGetWorkflowInstanceStatusById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetWorkflowInstanceStatusById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,QAAQ,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,CAAC;AAEzF,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,SAAS,EAAE,QAAQ,EAAE,CAAC;QACtB,OAAO,EAAE,QAAQ,EAAE,CAAC;QACpB,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,sBAAsB,CAAC,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,KAAK,GAAG,iBAAiB,CAAC,uBAAuB,EAAE,KAAK,EAAE,qBAAqB,CAAC,CASvI"}
@@ -1 +1 @@
1
- {"version":3,"file":"useInputTable.d.ts","sourceRoot":"","sources":["../../src/hooks/useInputTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACvC,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,OAAO,GAAE,oBAAyB,GACjC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CA0B5B;AAGD;;GAEG;AACH,wBAAgB,iBAAiB,wCAchC"}
1
+ {"version":3,"file":"useInputTable.d.ts","sourceRoot":"","sources":["../../src/hooks/useInputTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACvC,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,OAAO,GAAE,oBAAyB,GACjC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CA8B5B;AAGD;;GAEG;AACH,wBAAgB,iBAAiB,wCAchC"}
@@ -1,11 +1,18 @@
1
- import { copaApi } from '@bluecopa/core';
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ export interface TriggerHttpWorkflowRequest {
3
+ data: Record<string, any>;
4
+ triggerId: string;
5
+ }
6
+ export interface TriggerHttpWorkflowResponse {
7
+ triggeredWorkflows: {
8
+ workflowId: string;
9
+ triggerId: string;
10
+ }[];
11
+ }
2
12
  /**
3
13
  * Custom hook for triggering an HTTP workflow using TanStack React Query
4
14
  * @param options - Mutation options
5
15
  * @returns useMutation for triggering HTTP workflow
6
16
  */
7
- export declare function useTriggerHttpWorkflow(options?: {}): import('@tanstack/react-query').UseMutationResult<copaApi.workflow.TriggerHttpWorkflowResponse, Error, {
8
- data: Record<string, any>;
9
- triggerId: string;
10
- }, unknown>;
17
+ export declare function useTriggerHttpWorkflow(options?: {}): UseMutationResult<TriggerHttpWorkflowResponse, Error, TriggerHttpWorkflowRequest>;
11
18
  //# sourceMappingURL=useTriggerHttpWorkflow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTriggerHttpWorkflow.d.ts","sourceRoot":"","sources":["../../src/hooks/useTriggerHttpWorkflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,KAAK;UAEb,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;eAAa,MAAM;YAO3E"}
1
+ {"version":3,"file":"useTriggerHttpWorkflow.d.ts","sourceRoot":"","sources":["../../src/hooks/useTriggerHttpWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB,EAAE;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;CACL;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,KAAK,GAAG,iBAAiB,CAAC,2BAA2B,EAAE,KAAK,EAAE,0BAA0B,CAAC,CAStI"}
@@ -1,11 +1,22 @@
1
- import { copaApi } from '@bluecopa/core';
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ export interface TriggerWorkflowRequest {
3
+ parentId: string;
4
+ triggerBy: string;
5
+ }
6
+ export interface TriggerWorkflowResponse {
7
+ workbookId: string;
8
+ triggerBy: string;
9
+ instanceId: string;
10
+ triggerId: string;
11
+ workflowId: string;
12
+ status: string;
13
+ triggeredAt: string;
14
+ message: string;
15
+ }
2
16
  /**
3
17
  * Custom hook for triggering a workflow using TanStack React Query
4
18
  * @param options - Mutation options
5
19
  * @returns useMutation for triggering workflow
6
20
  */
7
- export declare function useTriggerWorkflow(options?: {}): import('@tanstack/react-query').UseMutationResult<copaApi.workflow.TriggerWorkflowResponse, Error, {
8
- parentId: string;
9
- triggerBy: string;
10
- }, unknown>;
21
+ export declare function useTriggerWorkflow(options?: {}): UseMutationResult<TriggerWorkflowResponse, Error, TriggerWorkflowRequest>;
11
22
  //# sourceMappingURL=useTriggerWorkflow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTriggerWorkflow.d.ts","sourceRoot":"","sources":["../../src/hooks/useTriggerWorkflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,KAAK;cAEL,MAAM;eAAa,MAAM;YAOlE"}
1
+ {"version":3,"file":"useTriggerWorkflow.d.ts","sourceRoot":"","sources":["../../src/hooks/useTriggerWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,KAAK,GAAG,iBAAiB,CAAC,uBAAuB,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAS1H"}
@@ -13273,10 +13273,11 @@ function N1(t = {}) {
13273
13273
  }
13274
13274
  const VC = N1;
13275
13275
  function HC(t, e, n = {}) {
13276
+ console.log("inputTableId", t), console.log("inputTableViewId", e);
13276
13277
  const { limitParams: s = { limit: 2e3, limitFrom: "top" }, ...o } = n, u = o.enabled !== !1 && !!t && !!e, l = Dt(async () => {
13277
13278
  if (!t || !e)
13278
13279
  throw new Error("Input table ID and view ID are required");
13279
- return console.log("Fetching input table data..."), await Qe.inputTable.getData({
13280
+ return console.log("Fetching input table data..."), console.log("inputTableId", t), console.log("inputTableViewId", e), console.log("limitParams", s), await Qe.inputTable.getData({
13280
13281
  inputTableId: t,
13281
13282
  inputTableViewId: e,
13282
13283
  limitParams: s
@@ -13301,7 +13302,7 @@ function zC(t, e, n, s = {}) {
13301
13302
  const o = !!t, u = Dt(async () => {
13302
13303
  if (!t)
13303
13304
  throw new Error("Statement ID is required");
13304
- return console.log("Fetching statement data..."), await Qe.statement.getData({
13305
+ return await Qe.statement.getData({
13305
13306
  statementId: t,
13306
13307
  viewId: e || void 0,
13307
13308
  runId: n || void 0
@@ -13318,7 +13319,7 @@ function KC(t, e = {}) {
13318
13319
  const n = !!t, s = Dt(async () => {
13319
13320
  if (!t)
13320
13321
  throw new Error("Sheet ID is required");
13321
- return console.log("Fetching views by sheet ID..."), await Qe.statement.getViewsBySheetId(t);
13322
+ return await Qe.statement.getViewsBySheetId(t);
13322
13323
  }), o = Ft({
13323
13324
  queryKey: ["statement", "getViewsBySheetId", t],
13324
13325
  queryFn: s,
@@ -13331,7 +13332,7 @@ function QC(t, e = {}) {
13331
13332
  const n = !!t, s = Dt(async () => {
13332
13333
  if (!t)
13333
13334
  throw new Error("View ID is required");
13334
- return console.log("Fetching runs by view ID..."), await Qe.statement.getRunsByViewId(t);
13335
+ return await Qe.statement.getRunsByViewId(t);
13335
13336
  }), o = Ft({
13336
13337
  queryKey: ["statement", "getRunsByViewId", t],
13337
13338
  queryFn: s,
@@ -13344,7 +13345,7 @@ function JC(t, e = {}) {
13344
13345
  const n = !!t, s = Dt(async () => {
13345
13346
  if (!t)
13346
13347
  throw new Error("View ID is required");
13347
- return console.log("Fetching view by ID..."), await Qe.statement.getViewById(t);
13348
+ return await Qe.statement.getViewById(t);
13348
13349
  }), o = Ft({
13349
13350
  queryKey: ["statement", "getViewById", t],
13350
13351
  queryFn: s,
@@ -13357,7 +13358,7 @@ function YC(t, e = {}) {
13357
13358
  const n = !!t, s = Dt(async () => {
13358
13359
  if (!t)
13359
13360
  throw new Error("Run ID is required");
13360
- return console.log("Fetching run result by ID..."), await Qe.statement.getRunResultById(t);
13361
+ return await Qe.statement.getRunResultById(t);
13361
13362
  }), o = Ft({
13362
13363
  queryKey: ["statement", "getRunResultById", t],
13363
13364
  queryFn: s,
@@ -13368,7 +13369,7 @@ function YC(t, e = {}) {
13368
13369
  }
13369
13370
  function XC(t = {}) {
13370
13371
  return wr({
13371
- mutationFn: async (e) => (console.log("Creating new statement run..."), await Qe.statement.createNewRun(e)),
13372
+ mutationFn: async (e) => await Qe.statement.createNewRun(e),
13372
13373
  ...t
13373
13374
  });
13374
13375
  }
@@ -15220,7 +15221,7 @@ var wA = (t, e = !1) => {
15220
15221
  const e = dm(() => {
15221
15222
  const n = this, [s] = y(this, zs), [o] = y(this, Ks), [u] = y(this, Qs), [l] = y(this, Js), [c] = y(this, Hs);
15222
15223
  let h;
15223
- return y(this, Ys) ? h = y(this, Ys) : (h = fm(() => import("./COOQDZLH-vsRTNtBY.js")), B(this, Ys, h)), Dm(y(this, mo), y(this, Gs)), lm(h, cm({
15224
+ return y(this, Ys) ? h = y(this, Ys) : (h = fm(() => import("./COOQDZLH-Da2mX3ss.js")), B(this, Ys, h)), Dm(y(this, mo), y(this, Gs)), lm(h, cm({
15224
15225
  get queryFlavor() {
15225
15226
  return y(n, po);
15226
15227
  },
@@ -15314,7 +15315,7 @@ var wA = (t, e = !1) => {
15314
15315
  const e = dm(() => {
15315
15316
  const n = this, [s] = y(this, ei), [o] = y(this, ti), [u] = y(this, ni), [l] = y(this, ri), [c] = y(this, Xs), [h] = y(this, si);
15316
15317
  let g;
15317
- return y(this, ii) ? g = y(this, ii) : (g = fm(() => import("./MU7WGUJF-Bxq64wsF.js")), B(this, ii, g)), Dm(y(this, wo), y(this, Zs)), lm(g, cm({
15318
+ return y(this, ii) ? g = y(this, ii) : (g = fm(() => import("./MU7WGUJF-DfMPO9ib.js")), B(this, ii, g)), Dm(y(this, wo), y(this, Zs)), lm(g, cm({
15318
15319
  get queryFlavor() {
15319
15320
  return y(n, yo);
15320
15321
  },
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { X as s, aj as t, ak as u, al as n, am as o, an as i, W as r, a6 as c, ai as m, _ as p, a7 as d, Z as l, a3 as C, a0 as G, a8 as b, ac as S, ah as y, af as D, ad as I, ag as U, ae as f, ab as h, Y as B, a1 as R, a4 as T, a5 as g, a2 as w, a9 as V, aa as k } from "./index-CvA42mHx.js";
1
+ import { X as s, aj as t, ak as u, al as n, am as o, an as i, W as r, a6 as c, ai as m, _ as p, a7 as d, Z as l, a3 as C, a0 as G, a8 as b, ac as S, ah as y, af as D, ad as I, ag as U, ae as f, ab as h, Y as B, a1 as R, a4 as T, a5 as g, a2 as w, a9 as V, aa as k } from "./index-DpZyX0HO.js";
2
2
  export {
3
3
  s as ReactQueryDevtools,
4
4
  t as copaApi,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/react",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Bluecopa react library with TanStack Query integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",