@lumerahq/ui 0.5.1 → 0.5.3
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.
- package/README.md +2 -2
- package/dist/{api-BNY_eNKa.js → api-DQ27NWG9.js} +1 -1
- package/dist/{automations-DU4weMpK.js → automations-DyftlW4p.js} +28 -18
- package/dist/components/index.js +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.js +23 -22
- package/dist/lib/api.d.ts +17 -6
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/automations.d.ts.map +1 -1
- package/dist/lib/bridge.d.ts +9 -0
- package/dist/lib/bridge.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +20 -19
- package/dist/{tooltip-BMqvkb5u.js → tooltip-CUAsXGVI.js} +2 -2
- package/dist/{use-automation-run-CbhXCKvM.js → use-automation-run-CdOYDvAW.js} +1 -1
- package/dist/{use-sql-table-DuIu8eMY.js → use-sql-table-hQjcbpJ_.js} +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @lumerahq/ui
|
|
|
13
13
|
- **UI Components** - Buttons, cards, tables, modals, sidebar, and more (built on shadcn/ui)
|
|
14
14
|
- **Data Table** - Full-featured table with filtering, sorting, and pagination
|
|
15
15
|
- **Bridge Module** - Parent-iframe communication for embedded apps
|
|
16
|
-
- **API Utilities** -
|
|
16
|
+
- **API Utilities** - Lumera client with SQL, CRUD, file, and email operations
|
|
17
17
|
- **Automation Runner** - Start and monitor automation runs
|
|
18
18
|
- **React Query Integration** - Data fetching hooks
|
|
19
19
|
|
|
@@ -36,7 +36,7 @@ const result = await pbSql<{ id: string; name: string }>({
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// CRUD operations
|
|
39
|
-
const items = await pbList<User>('users', { filter:
|
|
39
|
+
const items = await pbList<User>('users', { filter: JSON.stringify({ status: "active" }) });
|
|
40
40
|
const user = await pbGet<User>('users', 'user-id');
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as parentApiRequest, B as BridgeError } from "./automations-
|
|
1
|
+
import { p as parentApiRequest, B as BridgeError } from "./automations-DyftlW4p.js";
|
|
2
2
|
const API_PREFIX = "/api";
|
|
3
3
|
const buildUrl = (path) => {
|
|
4
4
|
const normalized = path.startsWith("/") ? path : `/${path}`;
|
|
@@ -13,6 +13,10 @@ class BridgeError extends Error {
|
|
|
13
13
|
const pendingRequests = /* @__PURE__ */ new Map();
|
|
14
14
|
const initListeners = /* @__PURE__ */ new Set();
|
|
15
15
|
let listenerAttached = false;
|
|
16
|
+
let storedHostPayload;
|
|
17
|
+
function getAppProjectExternalId() {
|
|
18
|
+
return storedHostPayload?.app?.projectExternalId;
|
|
19
|
+
}
|
|
16
20
|
const log = (...args) => {
|
|
17
21
|
};
|
|
18
22
|
const generateId = () => {
|
|
@@ -52,6 +56,7 @@ const handleMessage = (event) => {
|
|
|
52
56
|
}
|
|
53
57
|
const { type, payload } = event.data ?? {};
|
|
54
58
|
if (type === "init") {
|
|
59
|
+
storedHostPayload = payload;
|
|
55
60
|
initListeners.forEach((listener) => listener(payload));
|
|
56
61
|
return;
|
|
57
62
|
}
|
|
@@ -104,7 +109,7 @@ const parentApiRequest = async (request2) => {
|
|
|
104
109
|
id,
|
|
105
110
|
method: request2.method,
|
|
106
111
|
url: request2.url,
|
|
107
|
-
headers: request2.headers,
|
|
112
|
+
headers: { "X-Lumera-Client": "lumera-custom-app", ...request2.headers },
|
|
108
113
|
body: request2.body,
|
|
109
114
|
isBase64: request2.isBase64
|
|
110
115
|
}
|
|
@@ -179,6 +184,10 @@ async function resolveAutomationId(automationId) {
|
|
|
179
184
|
if (automationId.includes(":")) {
|
|
180
185
|
return getAutomationByExternalId(automationId);
|
|
181
186
|
}
|
|
187
|
+
const projectExternalId = getAppProjectExternalId();
|
|
188
|
+
if (projectExternalId) {
|
|
189
|
+
return getAutomationByExternalId(`${projectExternalId}:${automationId}`);
|
|
190
|
+
}
|
|
182
191
|
return automationId;
|
|
183
192
|
}
|
|
184
193
|
async function createRun(options) {
|
|
@@ -338,6 +347,7 @@ async function listRunsByExternalId(params) {
|
|
|
338
347
|
});
|
|
339
348
|
}
|
|
340
349
|
export {
|
|
350
|
+
pollRun as A,
|
|
341
351
|
BridgeError as B,
|
|
342
352
|
EXPECTED_PARENT_ORIGIN as E,
|
|
343
353
|
postReadyMessage as a,
|
|
@@ -346,24 +356,24 @@ export {
|
|
|
346
356
|
cancelRun as d,
|
|
347
357
|
clearAutomationCache as e,
|
|
348
358
|
createAutomationRun as f,
|
|
349
|
-
|
|
350
|
-
|
|
359
|
+
getAppProjectExternalId as g,
|
|
360
|
+
createRun as h,
|
|
351
361
|
isEmbedded as i,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
362
|
+
ensureAutomationRun as j,
|
|
363
|
+
ensureRun as k,
|
|
364
|
+
getAutomationByExternalId as l,
|
|
365
|
+
getAutomationRun as m,
|
|
366
|
+
getAutomationRunFileDownloadUrl as n,
|
|
357
367
|
onInitMessage as o,
|
|
358
368
|
parentApiRequest as p,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
+
getRun as q,
|
|
370
|
+
getRunFiles as r,
|
|
371
|
+
getRunFileUrl as s,
|
|
372
|
+
isActiveStatus as t,
|
|
373
|
+
isTerminalStatus as u,
|
|
374
|
+
listAutomationRunFiles as v,
|
|
375
|
+
listRuns as w,
|
|
376
|
+
listRunsByAgent as x,
|
|
377
|
+
listRunsByExternalId as y,
|
|
378
|
+
pollAutomationRun as z
|
|
369
379
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, d, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "../tooltip-
|
|
1
|
+
import { A, a, d, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "../tooltip-CUAsXGVI.js";
|
|
2
2
|
export {
|
|
3
3
|
A as AutomationRunList,
|
|
4
4
|
a as AutomationRunner,
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u, a, b, c, d, e } from "../use-sql-table-
|
|
2
|
-
import { u as u2 } from "../use-automation-run-
|
|
1
|
+
import { u, a, b, c, d, e } from "../use-sql-table-hQjcbpJ_.js";
|
|
2
|
+
import { u as u2 } from "../use-automation-run-CdOYDvAW.js";
|
|
3
3
|
export {
|
|
4
4
|
u as useAutomationAgent,
|
|
5
5
|
u2 as useAutomationRun,
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A, a, d, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "./tooltip-
|
|
2
|
-
import { u as u2, a as a4, b as b2, c as c2, d as d2, e as e2 } from "./use-sql-table-
|
|
3
|
-
import { u as u3 } from "./use-automation-run-
|
|
4
|
-
import { B as B2, E as E2, b as b3, c as c3, d as d3, e as e3, f as f2,
|
|
5
|
-
import { g as g3, a as a6, p as p3, b as b4, c as c4, d as d4, e as e4, f as f3, h as h3, i as i3, j as j3, k as k3, l as l3, s as s3, u as u5 } from "./api-
|
|
1
|
+
import { A, a, d, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "./tooltip-CUAsXGVI.js";
|
|
2
|
+
import { u as u2, a as a4, b as b2, c as c2, d as d2, e as e2 } from "./use-sql-table-hQjcbpJ_.js";
|
|
3
|
+
import { u as u3 } from "./use-automation-run-CdOYDvAW.js";
|
|
4
|
+
import { B as B2, E as E2, b as b3, c as c3, d as d3, e as e3, f as f2, h as h2, j as j2, k as k2, g as g2, l as l2, m as m2, n as n2, q as q2, s as s2, r as r2, t as t2, i as i2, u as u4, v as v2, w as w2, x as x2, y as y2, o as o2, p as p2, z as z2, A as A2, a as a5 } from "./automations-DyftlW4p.js";
|
|
5
|
+
import { g as g3, a as a6, p as p3, b as b4, c as c4, d as d4, e as e4, f as f3, h as h3, i as i3, j as j3, k as k3, l as l3, s as s3, u as u5 } from "./api-DQ27NWG9.js";
|
|
6
6
|
import { o as o3, f as f4, a as a7, b as b5, c as c5, d as d5, e as e5, g as g4, h as h4, i as i4, j as j4, k as k4, l as l4, m as m3, n as n3, s as s4 } from "./formatters-Baj7FkeG.js";
|
|
7
7
|
import { q as q3 } from "./query-client-DdOWay4_.js";
|
|
8
8
|
export {
|
|
@@ -70,9 +70,9 @@ export {
|
|
|
70
70
|
e3 as clearAutomationCache,
|
|
71
71
|
o3 as cn,
|
|
72
72
|
f2 as createAutomationRun,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
h2 as createRun,
|
|
74
|
+
j2 as ensureAutomationRun,
|
|
75
|
+
k2 as ensureRun,
|
|
76
76
|
f4 as formatBoolean,
|
|
77
77
|
a7 as formatCellValue,
|
|
78
78
|
b5 as formatCurrency,
|
|
@@ -87,21 +87,22 @@ export {
|
|
|
87
87
|
l4 as formatRelation,
|
|
88
88
|
m3 as formatSelect,
|
|
89
89
|
n3 as formatText,
|
|
90
|
-
|
|
91
|
-
l2 as
|
|
92
|
-
m2 as
|
|
90
|
+
g2 as getAppProjectExternalId,
|
|
91
|
+
l2 as getAutomationByExternalId,
|
|
92
|
+
m2 as getAutomationRun,
|
|
93
|
+
n2 as getAutomationRunFileDownloadUrl,
|
|
93
94
|
g3 as getDownloadUrl,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
q2 as getRun,
|
|
96
|
+
s2 as getRunFileUrl,
|
|
97
|
+
r2 as getRunFiles,
|
|
97
98
|
a6 as getUploadUrl,
|
|
98
|
-
|
|
99
|
+
t2 as isActiveStatus,
|
|
99
100
|
i2 as isEmbedded,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
u4 as isTerminalStatus,
|
|
102
|
+
v2 as listAutomationRunFiles,
|
|
103
|
+
w2 as listRuns,
|
|
104
|
+
x2 as listRunsByAgent,
|
|
105
|
+
y2 as listRunsByExternalId,
|
|
105
106
|
o2 as onInitMessage,
|
|
106
107
|
p2 as parentApiRequest,
|
|
107
108
|
p3 as pbBulkDelete,
|
|
@@ -115,8 +116,8 @@ export {
|
|
|
115
116
|
j3 as pbUpdate,
|
|
116
117
|
k3 as pbUpdateRecord,
|
|
117
118
|
l3 as pbUpsert,
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
z2 as pollAutomationRun,
|
|
120
|
+
A2 as pollRun,
|
|
120
121
|
a5 as postReadyMessage,
|
|
121
122
|
q3 as queryClient,
|
|
122
123
|
s3 as sendEmail,
|
package/dist/lib/api.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Lumera API client for custom apps.
|
|
3
3
|
*
|
|
4
4
|
* All operations go through the parent bridge for authentication.
|
|
5
5
|
* This module provides a clean, typed interface for CRUD operations.
|
|
6
6
|
*
|
|
7
7
|
* @module api
|
|
8
8
|
*/
|
|
9
|
-
/** Base type for
|
|
9
|
+
/** Base type for Lumera records */
|
|
10
10
|
export type PbRecord = Record<string, unknown> & {
|
|
11
11
|
id?: string;
|
|
12
12
|
created?: string;
|
|
@@ -35,7 +35,18 @@ export type PbListOptions = {
|
|
|
35
35
|
page?: number;
|
|
36
36
|
/** Items per page */
|
|
37
37
|
perPage?: number;
|
|
38
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Filter as a JSON-stringified object. Use `JSON.stringify({...})` with the
|
|
40
|
+
* same filter syntax as the Python SDK (equality, comparison operators, OR logic).
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Equality
|
|
44
|
+
* JSON.stringify({ status: "active" })
|
|
45
|
+
* // Comparison operators: gt, gte, lt, lte, eq
|
|
46
|
+
* JSON.stringify({ amount: { gt: 1000 } })
|
|
47
|
+
* // OR logic
|
|
48
|
+
* JSON.stringify({ or: [{ status: "pending" }, { status: "review" }] })
|
|
49
|
+
*/
|
|
39
50
|
filter?: string;
|
|
40
51
|
/** Sort expression (e.g., "-created" for descending) */
|
|
41
52
|
sort?: string;
|
|
@@ -109,11 +120,11 @@ export type EmailSendRequest = {
|
|
|
109
120
|
export type EmailSendResult = {
|
|
110
121
|
/** AWS SES message ID */
|
|
111
122
|
message_id: string;
|
|
112
|
-
/**
|
|
123
|
+
/** Log record ID in lm_email_logs */
|
|
113
124
|
log_id: string;
|
|
114
125
|
};
|
|
115
126
|
/**
|
|
116
|
-
* Execute a SQL query against
|
|
127
|
+
* Execute a SQL query against the tenant database.
|
|
117
128
|
*
|
|
118
129
|
* @param req - SQL query request with query and optional params/args
|
|
119
130
|
* @returns Query result with rows and metadata
|
|
@@ -154,7 +165,7 @@ export declare function pbGet<T extends PbRecord = PbRecord>(collection: string,
|
|
|
154
165
|
*
|
|
155
166
|
* @example
|
|
156
167
|
* const result = await pbList<User>('users', {
|
|
157
|
-
* filter:
|
|
168
|
+
* filter: JSON.stringify({ status: "active" }),
|
|
158
169
|
* sort: '-created',
|
|
159
170
|
* perPage: 50,
|
|
160
171
|
* });
|
package/dist/lib/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/lib/api.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/lib/api.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAwB;AACxB,MAAM,MAAM,YAAY,GAAG;IACzB,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,0CAA0C;IAC1C,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;CAClB,CAAC;AAEF,yBAAyB;AACzB,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,yBAAyB;AACzB,MAAM,MAAM,aAAa,GAAG;IAC1B,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,IAAI,C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,EAAE,CAAC,CAM3B"}
|
package/dist/lib/bridge.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ export type HostPayload = {
|
|
|
30
30
|
email: string;
|
|
31
31
|
role?: string;
|
|
32
32
|
};
|
|
33
|
+
app?: {
|
|
34
|
+
externalId?: string;
|
|
35
|
+
projectExternalId?: string;
|
|
36
|
+
};
|
|
33
37
|
message?: string;
|
|
34
38
|
session?: {
|
|
35
39
|
token?: string;
|
|
@@ -75,6 +79,11 @@ export declare class BridgeError extends Error {
|
|
|
75
79
|
readonly response?: BridgeResponse;
|
|
76
80
|
constructor(message: string, status?: number, response?: BridgeResponse);
|
|
77
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Get the app context from the host init payload.
|
|
84
|
+
* Returns the project external ID (package.json name) if available.
|
|
85
|
+
*/
|
|
86
|
+
export declare function getAppProjectExternalId(): string | undefined;
|
|
78
87
|
/**
|
|
79
88
|
* Check if the app is running embedded in an iframe.
|
|
80
89
|
*
|
package/dist/lib/bridge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/lib/bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAYH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,KAC+E,CAAC;AAMnH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,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CAAC;gBAEvB,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc;CAMxE;AAYD;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,SAAS,CAE5D;AAiMD;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,QAAO,OAAsE,CAAC;AAErG;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,QAAO,IAYnC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,KAAG,CAAC,MAAM,IAAI,CAU/F,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB,GAAU,SAAS,aAAa,KAAG,OAAO,CAAC,cAAc,CAwCrF,CAAC"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module @lumerahq/ui/lib
|
|
5
5
|
*/
|
|
6
|
-
export { BridgeError, type BridgeRequest, type BridgeResponse, EXPECTED_PARENT_ORIGIN, type HostPayload, isEmbedded, onInitMessage, parentApiRequest, postReadyMessage, } from './bridge';
|
|
6
|
+
export { BridgeError, type BridgeRequest, type BridgeResponse, EXPECTED_PARENT_ORIGIN, getAppProjectExternalId, type HostPayload, isEmbedded, onInitMessage, parentApiRequest, postReadyMessage, } from './bridge';
|
|
7
7
|
export { type EmailSendRequest, type EmailSendResult, type FileDescriptor, getDownloadUrl, getUploadUrl, type PbBulkResult, type PbListOptions, type PbListResponse, type PbRecord, type PbSqlRequest, type PbSqlResponse, pbBulkDelete, pbBulkUpdate, pbCreate, pbDelete, pbGet, pbList, pbSearch, pbSql, pbUpdate, pbUpdateRecord, pbUpsert, sendEmail, type UploadOptions, type UploadUrlResponse, uploadFile, } from './api';
|
|
8
8
|
export { type Automation, type AutomationRun, type AutomationRunFile, type AutomationStatus, automationStatuses, type CreateRunOptions, cancelAutomationRun, cancelRun, clearAutomationCache, createAutomationRun, createRun, ensureAutomationRun, ensureRun, getAutomationByExternalId, getAutomationRun, getAutomationRunFileDownloadUrl, getRun, getRunFiles, getRunFileUrl, isActiveStatus, isTerminalStatus, type LegacyCreateRunOptions, type ListRunsOptions, listAutomationRunFiles, listRuns, listRunsByAgent, listRunsByExternalId, type PollOptions, pollAutomationRun, pollRun, } from './automations';
|
|
9
9
|
export { type ColumnType, type FileDescriptor as FormatterFileDescriptor, type FormatOptions, formatBoolean, formatCellValue, formatCurrency, formatDate, formatDateTime, formatEditor, formatFile, formatFileSize, formatJson, formatNumber, formatPercent, formatRelation, formatSelect, formatText, stripHtml, } from './formatters';
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EAEnB,sBAAsB,EAEtB,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EAEnB,sBAAsB,EAEtB,uBAAuB,EAEvB,KAAK,WAAW,EAChB,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAMlB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,cAAc,EAEd,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EAEnB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,YAAY,EAEZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EAER,KAAK,EACL,MAAM,EACN,QAAQ,EAER,KAAK,EACL,QAAQ,EAER,cAAc,EACd,QAAQ,EAER,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,UAAU,GACX,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,mBAAmB,EACnB,SAAS,EAET,oBAAoB,EAEpB,mBAAmB,EAEnB,SAAS,EACT,mBAAmB,EACnB,SAAS,EAET,yBAAyB,EACzB,gBAAgB,EAChB,+BAA+B,EAC/B,MAAM,EAEN,WAAW,EACX,aAAa,EACb,cAAc,EAEd,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,sBAAsB,EACtB,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,KAAK,WAAW,EAChB,iBAAiB,EACjB,OAAO,GACR,MAAM,eAAe,CAAC;AAMvB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,IAAI,uBAAuB,EAC9C,KAAK,aAAa,EAClB,aAAa,EACb,eAAe,EACf,cAAc,EACd,UAAU,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,GACV,MAAM,cAAc,CAAC;AAMtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAM7C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B, E, b, c, d, e, f,
|
|
2
|
-
import { g as g2, a as a2, p as p2, b as b2, c as c2, d as d2, e as e2, f as f2, h as h2, i as i2, j as j2, k as k2, l as l2, s as s2, u as u2 } from "../api-
|
|
1
|
+
import { B, E, b, c, d, e, f, h, j, k, g, l, m, n, q, s, r, t, i, u, v, w, x, y, o, p, z, A, a } from "../automations-DyftlW4p.js";
|
|
2
|
+
import { g as g2, a as a2, p as p2, b as b2, c as c2, d as d2, e as e2, f as f2, h as h2, i as i2, j as j2, k as k2, l as l2, s as s2, u as u2 } from "../api-DQ27NWG9.js";
|
|
3
3
|
import { o as o2, f as f3, a as a3, b as b3, c as c3, d as d3, e as e3, g as g3, h as h3, i as i3, j as j3, k as k3, l as l3, m as m2, n as n2, s as s3 } from "../formatters-Baj7FkeG.js";
|
|
4
4
|
import { q as q2 } from "../query-client-DdOWay4_.js";
|
|
5
5
|
export {
|
|
@@ -11,9 +11,9 @@ export {
|
|
|
11
11
|
e as clearAutomationCache,
|
|
12
12
|
o2 as cn,
|
|
13
13
|
f as createAutomationRun,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
h as createRun,
|
|
15
|
+
j as ensureAutomationRun,
|
|
16
|
+
k as ensureRun,
|
|
17
17
|
f3 as formatBoolean,
|
|
18
18
|
a3 as formatCellValue,
|
|
19
19
|
b3 as formatCurrency,
|
|
@@ -28,21 +28,22 @@ export {
|
|
|
28
28
|
l3 as formatRelation,
|
|
29
29
|
m2 as formatSelect,
|
|
30
30
|
n2 as formatText,
|
|
31
|
-
|
|
32
|
-
l as
|
|
33
|
-
m as
|
|
31
|
+
g as getAppProjectExternalId,
|
|
32
|
+
l as getAutomationByExternalId,
|
|
33
|
+
m as getAutomationRun,
|
|
34
|
+
n as getAutomationRunFileDownloadUrl,
|
|
34
35
|
g2 as getDownloadUrl,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
q as getRun,
|
|
37
|
+
s as getRunFileUrl,
|
|
38
|
+
r as getRunFiles,
|
|
38
39
|
a2 as getUploadUrl,
|
|
39
|
-
|
|
40
|
+
t as isActiveStatus,
|
|
40
41
|
i as isEmbedded,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
u as isTerminalStatus,
|
|
43
|
+
v as listAutomationRunFiles,
|
|
44
|
+
w as listRuns,
|
|
45
|
+
x as listRunsByAgent,
|
|
46
|
+
y as listRunsByExternalId,
|
|
46
47
|
o as onInitMessage,
|
|
47
48
|
p as parentApiRequest,
|
|
48
49
|
p2 as pbBulkDelete,
|
|
@@ -56,8 +57,8 @@ export {
|
|
|
56
57
|
j2 as pbUpdate,
|
|
57
58
|
k2 as pbUpdateRecord,
|
|
58
59
|
l2 as pbUpsert,
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
z as pollAutomationRun,
|
|
61
|
+
A as pollRun,
|
|
61
62
|
a as postReadyMessage,
|
|
62
63
|
q2 as queryClient,
|
|
63
64
|
s2 as sendEmail,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { forwardRef, createElement, useState, useLayoutEffect, useCallback } from "react";
|
|
4
|
-
import { b as automationStatuses,
|
|
4
|
+
import { b as automationStatuses, n as getAutomationRunFileDownloadUrl, v as listAutomationRunFiles } from "./automations-DyftlW4p.js";
|
|
5
5
|
import { p as clsx, o as cn, a as formatCellValue } from "./formatters-Baj7FkeG.js";
|
|
6
|
-
import { u as useAutomationRun } from "./use-automation-run-
|
|
6
|
+
import { u as useAutomationRun } from "./use-automation-run-CdOYDvAW.js";
|
|
7
7
|
import * as ReactDOM from "react-dom";
|
|
8
8
|
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
9
9
|
const toCamelCase = (string) => string.replace(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { j as ensureAutomationRun, f as createAutomationRun, c as cancelAutomationRun, b as automationStatuses, m as getAutomationRun } from "./automations-DyftlW4p.js";
|
|
4
4
|
function useAutomationRun(options) {
|
|
5
5
|
const {
|
|
6
6
|
agentId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { useState, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as uploadFile, i as pbSql, k as pbUpdateRecord } from "./api-
|
|
3
|
+
import { x as listRunsByAgent, b as automationStatuses, f as createAutomationRun, o as onInitMessage } from "./automations-DyftlW4p.js";
|
|
4
|
+
import { u as uploadFile, i as pbSql, k as pbUpdateRecord } from "./api-DQ27NWG9.js";
|
|
5
5
|
function useAutomationAgent({
|
|
6
6
|
agentId,
|
|
7
7
|
limit = 5,
|