@lumerahq/ui 0.5.3 → 0.6.0
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/dist/{tooltip-CUAsXGVI.js → RecordSheet-BpCHkWER.js} +847 -5922
- package/dist/{api-DQ27NWG9.js → api-C2z38WwO.js} +1 -1
- package/dist/{automations-DyftlW4p.js → automations-CNgQ5MSR.js} +90 -0
- package/dist/components/index.d.ts +0 -18
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -54
- package/dist/hooks/index.js +2 -2
- package/dist/index.js +66 -118
- package/dist/lib/api.d.ts +3 -3
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/bridge.d.ts.map +1 -1
- package/dist/lib/index.js +2 -2
- package/dist/ui.css +3 -652
- package/dist/{use-automation-run-CdOYDvAW.js → use-automation-run-BRbDkOJ2.js} +1 -1
- package/dist/{use-sql-table-hQjcbpJ_.js → use-sql-table-ScNnE-jh.js} +2 -2
- package/package.json +1 -1
- package/dist/components/ui/avatar.d.ts +0 -12
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -18
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/file-dropzone.d.ts +0 -23
- package/dist/components/ui/file-dropzone.d.ts.map +0 -1
- package/dist/components/ui/popover.d.ts +0 -10
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/progress.d.ts +0 -8
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.d.ts +0 -5
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/status-badge.d.ts +0 -21
- package/dist/components/ui/status-badge.d.ts.map +0 -1
- package/dist/components/ui/tabs.d.ts +0 -11
- package/dist/components/ui/tabs.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as parentApiRequest, B as BridgeError } from "./automations-
|
|
1
|
+
import { p as parentApiRequest, B as BridgeError } from "./automations-CNgQ5MSR.js";
|
|
2
2
|
const API_PREFIX = "/api";
|
|
3
3
|
const buildUrl = (path) => {
|
|
4
4
|
const normalized = path.startsWith("/") ? path : `/${path}`;
|
|
@@ -43,6 +43,54 @@ const isAllowedOrigin = (origin) => {
|
|
|
43
43
|
}
|
|
44
44
|
return false;
|
|
45
45
|
};
|
|
46
|
+
const PLAYGROUND_FLAG = "__playground__";
|
|
47
|
+
const isPlaygroundMode = () => typeof window !== "undefined" && isEmbedded() && window.name.includes(PLAYGROUND_FLAG);
|
|
48
|
+
if (typeof window !== "undefined" && isPlaygroundMode()) {
|
|
49
|
+
window.__playgroundNative = true;
|
|
50
|
+
}
|
|
51
|
+
const getPlaygroundVB = () => {
|
|
52
|
+
try {
|
|
53
|
+
return window.parent.__playgroundVB ?? null;
|
|
54
|
+
} catch {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const playgroundApiRequest = async (request2) => {
|
|
59
|
+
const url = request2.url;
|
|
60
|
+
log("Playground mode: VB request", { url, method: request2.method });
|
|
61
|
+
const vb = getPlaygroundVB();
|
|
62
|
+
if (!vb) {
|
|
63
|
+
return {
|
|
64
|
+
id: "playground",
|
|
65
|
+
ok: false,
|
|
66
|
+
status: 503,
|
|
67
|
+
error: "Playground backend not ready"
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
const result = vb.handleRequest({
|
|
72
|
+
id: generateId(),
|
|
73
|
+
method: request2.method,
|
|
74
|
+
url,
|
|
75
|
+
headers: { "X-Lumera-Client": "lumera-custom-app", ...request2.headers },
|
|
76
|
+
body: request2.body
|
|
77
|
+
});
|
|
78
|
+
return {
|
|
79
|
+
id: result.id ?? "playground",
|
|
80
|
+
ok: result.ok ?? false,
|
|
81
|
+
status: result.status ?? 500,
|
|
82
|
+
body: result.body,
|
|
83
|
+
error: result.error
|
|
84
|
+
};
|
|
85
|
+
} catch (err) {
|
|
86
|
+
return {
|
|
87
|
+
id: "playground",
|
|
88
|
+
ok: false,
|
|
89
|
+
status: 500,
|
|
90
|
+
error: err instanceof Error ? err.message : "VB error"
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
};
|
|
46
94
|
const handleMessage = (event) => {
|
|
47
95
|
if (event.source !== window.parent) {
|
|
48
96
|
return;
|
|
@@ -79,14 +127,56 @@ const isEmbedded = () => typeof window !== "undefined" && window.self !== window
|
|
|
79
127
|
const postReadyMessage = () => {
|
|
80
128
|
if (typeof window === "undefined") return;
|
|
81
129
|
ensureListener();
|
|
130
|
+
if (isPlaygroundMode()) {
|
|
131
|
+
window.parent.postMessage({ type: "ready" }, "*");
|
|
132
|
+
const vb = getPlaygroundVB();
|
|
133
|
+
if (vb) {
|
|
134
|
+
try {
|
|
135
|
+
const meResult = vb.handleRequest({
|
|
136
|
+
id: "init-me",
|
|
137
|
+
method: "GET",
|
|
138
|
+
url: "/api/me"
|
|
139
|
+
});
|
|
140
|
+
if (meResult.ok && meResult.body?.user) {
|
|
141
|
+
const user = meResult.body.user;
|
|
142
|
+
const payload = {
|
|
143
|
+
company: {
|
|
144
|
+
id: user.company_id ?? "",
|
|
145
|
+
name: user.company_name,
|
|
146
|
+
apiName: user.company_api_name
|
|
147
|
+
},
|
|
148
|
+
user: { id: user.id, name: user.name, email: user.email, role: user.role },
|
|
149
|
+
message: "Playground mode"
|
|
150
|
+
};
|
|
151
|
+
log("Playground mode: init from VB", payload);
|
|
152
|
+
storedHostPayload = payload;
|
|
153
|
+
setTimeout(() => initListeners.forEach((listener) => listener(payload)), 0);
|
|
154
|
+
} else {
|
|
155
|
+
log("Playground mode: /api/me returned no user, continuing");
|
|
156
|
+
setTimeout(() => initListeners.forEach((listener) => listener(void 0)), 0);
|
|
157
|
+
}
|
|
158
|
+
} catch (err) {
|
|
159
|
+
setTimeout(() => initListeners.forEach((listener) => listener(void 0)), 0);
|
|
160
|
+
}
|
|
161
|
+
} else {
|
|
162
|
+
setTimeout(() => initListeners.forEach((listener) => listener(void 0)), 0);
|
|
163
|
+
}
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
82
166
|
window.parent.postMessage({ type: "ready" }, "*");
|
|
83
167
|
};
|
|
84
168
|
const onInitMessage = (listener) => {
|
|
85
169
|
ensureListener();
|
|
86
170
|
initListeners.add(listener);
|
|
171
|
+
if (isPlaygroundMode() && storedHostPayload) {
|
|
172
|
+
setTimeout(() => listener(storedHostPayload), 0);
|
|
173
|
+
}
|
|
87
174
|
return () => initListeners.delete(listener);
|
|
88
175
|
};
|
|
89
176
|
const parentApiRequest = async (request2) => {
|
|
177
|
+
if (isPlaygroundMode()) {
|
|
178
|
+
return playgroundApiRequest(request2);
|
|
179
|
+
}
|
|
90
180
|
if (typeof window === "undefined" || !isEmbedded()) {
|
|
91
181
|
throw new BridgeError("App must be embedded in the Lumera host to make API requests");
|
|
92
182
|
}
|
|
@@ -2,22 +2,4 @@ export type { ColumnType, FormatOptions } from '../lib/formatters';
|
|
|
2
2
|
export { AutomationRunList } from './automation/AutomationRunList';
|
|
3
3
|
export { AutomationRunner } from './automation/AutomationRunner';
|
|
4
4
|
export { type ColumnDef, DataTable, DataTableFilters, type DataTableFiltersProps, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type FilterColumn, RecordSheet, type RecordSheetProps, } from './data-table';
|
|
5
|
-
export { Avatar, AvatarFallback, AvatarImage } from './ui/avatar';
|
|
6
|
-
export { Badge, badgeVariants } from './ui/badge';
|
|
7
|
-
export { Button, buttonVariants } from './ui/button';
|
|
8
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './ui/card';
|
|
9
|
-
export { Checkbox } from './ui/checkbox';
|
|
10
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from './ui/dialog';
|
|
11
|
-
export { FileDropzone, type FileDropzoneProps } from './ui/file-dropzone';
|
|
12
|
-
export { Input } from './ui/input';
|
|
13
|
-
export { Label } from './ui/label';
|
|
14
|
-
export { Progress } from './ui/progress';
|
|
15
|
-
export { ScrollArea, ScrollBar } from './ui/scroll-area';
|
|
16
|
-
export { Separator } from './ui/separator';
|
|
17
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from './ui/sheet';
|
|
18
|
-
export { Skeleton } from './ui/skeleton';
|
|
19
|
-
export { ConfidenceBadge, EncodingStatusBadge, StatusBadge, type StatusBadgeProps, statusBadgeVariants, } from './ui/status-badge';
|
|
20
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants } from './ui/tabs';
|
|
21
|
-
export { Textarea } from './ui/textarea';
|
|
22
|
-
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
|
|
23
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,OAAO,EACL,KAAK,SAAS,EACd,SAAS,EACT,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,61 +1,9 @@
|
|
|
1
|
-
import { A, a,
|
|
1
|
+
import { A, a, D, b, c, R } from "../RecordSheet-BpCHkWER.js";
|
|
2
2
|
export {
|
|
3
3
|
A as AutomationRunList,
|
|
4
4
|
a as AutomationRunner,
|
|
5
|
-
d as Avatar,
|
|
6
|
-
e as AvatarFallback,
|
|
7
|
-
f as AvatarImage,
|
|
8
|
-
B as Badge,
|
|
9
|
-
h as Button,
|
|
10
|
-
C as Card,
|
|
11
|
-
j as CardContent,
|
|
12
|
-
k as CardDescription,
|
|
13
|
-
l as CardFooter,
|
|
14
|
-
m as CardHeader,
|
|
15
|
-
n as CardTitle,
|
|
16
|
-
o as Checkbox,
|
|
17
|
-
Q as ConfidenceBadge,
|
|
18
5
|
D as DataTable,
|
|
19
6
|
b as DataTableFilters,
|
|
20
7
|
c as DataTablePagination,
|
|
21
|
-
|
|
22
|
-
q as DialogClose,
|
|
23
|
-
r as DialogContent,
|
|
24
|
-
s as DialogDescription,
|
|
25
|
-
t as DialogFooter,
|
|
26
|
-
u as DialogHeader,
|
|
27
|
-
v as DialogTitle,
|
|
28
|
-
w as DialogTrigger,
|
|
29
|
-
T as EncodingStatusBadge,
|
|
30
|
-
F as FileDropzone,
|
|
31
|
-
I as Input,
|
|
32
|
-
L as Label,
|
|
33
|
-
P as Progress,
|
|
34
|
-
R as RecordSheet,
|
|
35
|
-
S as ScrollArea,
|
|
36
|
-
x as ScrollBar,
|
|
37
|
-
y as Separator,
|
|
38
|
-
z as Sheet,
|
|
39
|
-
E as SheetClose,
|
|
40
|
-
G as SheetContent,
|
|
41
|
-
H as SheetDescription,
|
|
42
|
-
J as SheetFooter,
|
|
43
|
-
K as SheetHeader,
|
|
44
|
-
M as SheetTitle,
|
|
45
|
-
N as SheetTrigger,
|
|
46
|
-
O as Skeleton,
|
|
47
|
-
U as StatusBadge,
|
|
48
|
-
W as Tabs,
|
|
49
|
-
X as TabsContent,
|
|
50
|
-
Y as TabsList,
|
|
51
|
-
Z as TabsTrigger,
|
|
52
|
-
$ as Textarea,
|
|
53
|
-
a0 as Tooltip,
|
|
54
|
-
a1 as TooltipContent,
|
|
55
|
-
a2 as TooltipProvider,
|
|
56
|
-
a3 as TooltipTrigger,
|
|
57
|
-
g as badgeVariants,
|
|
58
|
-
i as buttonVariants,
|
|
59
|
-
V as statusBadgeVariants,
|
|
60
|
-
_ as tabsListVariants
|
|
8
|
+
R as RecordSheet
|
|
61
9
|
};
|
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-ScNnE-jh.js";
|
|
2
|
+
import { u as u2 } from "../use-automation-run-BRbDkOJ2.js";
|
|
3
3
|
export {
|
|
4
4
|
u as useAutomationAgent,
|
|
5
5
|
u2 as useAutomationRun,
|
package/dist/index.js
CHANGED
|
@@ -1,135 +1,83 @@
|
|
|
1
|
-
import { A, a,
|
|
2
|
-
import { u
|
|
3
|
-
import { u as
|
|
4
|
-
import { B
|
|
5
|
-
import { g as
|
|
6
|
-
import { o as
|
|
7
|
-
import { q as
|
|
1
|
+
import { A, a, D, b, c, R } from "./RecordSheet-BpCHkWER.js";
|
|
2
|
+
import { u, a as a2, b as b2, c as c2, d, e } from "./use-sql-table-ScNnE-jh.js";
|
|
3
|
+
import { u as u2 } from "./use-automation-run-BRbDkOJ2.js";
|
|
4
|
+
import { B, E, b as b3, c as c3, d as d2, e as e2, f, h, j, k, g, l, m, n, q, s, r, t, i, u as u3, v, w, x, y, o, p, z, A as A2, a as a3 } from "./automations-CNgQ5MSR.js";
|
|
5
|
+
import { g as g2, a as a4, p as p2, b as b4, c as c4, d as d3, e as e3, f as f2, h as h2, i as i2, j as j2, k as k2, l as l2, s as s2, u as u4 } from "./api-C2z38WwO.js";
|
|
6
|
+
import { o as o2, f as f3, a as a5, b as b5, c as c5, d as d4, e as e4, 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";
|
|
7
|
+
import { q as q2 } from "./query-client-DdOWay4_.js";
|
|
8
8
|
export {
|
|
9
9
|
A as AutomationRunList,
|
|
10
10
|
a as AutomationRunner,
|
|
11
|
-
|
|
12
|
-
e as AvatarFallback,
|
|
13
|
-
f as AvatarImage,
|
|
14
|
-
B as Badge,
|
|
15
|
-
B2 as BridgeError,
|
|
16
|
-
h as Button,
|
|
17
|
-
C as Card,
|
|
18
|
-
j as CardContent,
|
|
19
|
-
k as CardDescription,
|
|
20
|
-
l as CardFooter,
|
|
21
|
-
m as CardHeader,
|
|
22
|
-
n as CardTitle,
|
|
23
|
-
o as Checkbox,
|
|
24
|
-
Q as ConfidenceBadge,
|
|
11
|
+
B as BridgeError,
|
|
25
12
|
D as DataTable,
|
|
26
13
|
b as DataTableFilters,
|
|
27
14
|
c as DataTablePagination,
|
|
28
|
-
|
|
29
|
-
q as DialogClose,
|
|
30
|
-
r as DialogContent,
|
|
31
|
-
s as DialogDescription,
|
|
32
|
-
t as DialogFooter,
|
|
33
|
-
u as DialogHeader,
|
|
34
|
-
v as DialogTitle,
|
|
35
|
-
w as DialogTrigger,
|
|
36
|
-
E2 as EXPECTED_PARENT_ORIGIN,
|
|
37
|
-
T as EncodingStatusBadge,
|
|
38
|
-
F as FileDropzone,
|
|
39
|
-
I as Input,
|
|
40
|
-
L as Label,
|
|
41
|
-
P as Progress,
|
|
15
|
+
E as EXPECTED_PARENT_ORIGIN,
|
|
42
16
|
R as RecordSheet,
|
|
43
|
-
S as ScrollArea,
|
|
44
|
-
x as ScrollBar,
|
|
45
|
-
y as Separator,
|
|
46
|
-
z as Sheet,
|
|
47
|
-
E as SheetClose,
|
|
48
|
-
G as SheetContent,
|
|
49
|
-
H as SheetDescription,
|
|
50
|
-
J as SheetFooter,
|
|
51
|
-
K as SheetHeader,
|
|
52
|
-
M as SheetTitle,
|
|
53
|
-
N as SheetTrigger,
|
|
54
|
-
O as Skeleton,
|
|
55
|
-
U as StatusBadge,
|
|
56
|
-
W as Tabs,
|
|
57
|
-
X as TabsContent,
|
|
58
|
-
Y as TabsList,
|
|
59
|
-
Z as TabsTrigger,
|
|
60
|
-
$ as Textarea,
|
|
61
|
-
a0 as Tooltip,
|
|
62
|
-
a1 as TooltipContent,
|
|
63
|
-
a2 as TooltipProvider,
|
|
64
|
-
a3 as TooltipTrigger,
|
|
65
17
|
b3 as automationStatuses,
|
|
66
|
-
g as badgeVariants,
|
|
67
|
-
i as buttonVariants,
|
|
68
18
|
c3 as cancelAutomationRun,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
19
|
+
d2 as cancelRun,
|
|
20
|
+
e2 as clearAutomationCache,
|
|
21
|
+
o2 as cn,
|
|
22
|
+
f as createAutomationRun,
|
|
23
|
+
h as createRun,
|
|
24
|
+
j as ensureAutomationRun,
|
|
25
|
+
k as ensureRun,
|
|
26
|
+
f3 as formatBoolean,
|
|
27
|
+
a5 as formatCellValue,
|
|
78
28
|
b5 as formatCurrency,
|
|
79
29
|
c5 as formatDate,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
30
|
+
d4 as formatDateTime,
|
|
31
|
+
e4 as formatEditor,
|
|
32
|
+
g3 as formatFile,
|
|
33
|
+
h3 as formatFileSize,
|
|
34
|
+
i3 as formatJson,
|
|
35
|
+
j3 as formatNumber,
|
|
36
|
+
k3 as formatPercent,
|
|
37
|
+
l3 as formatRelation,
|
|
38
|
+
m2 as formatSelect,
|
|
39
|
+
n2 as formatText,
|
|
40
|
+
g as getAppProjectExternalId,
|
|
41
|
+
l as getAutomationByExternalId,
|
|
42
|
+
m as getAutomationRun,
|
|
43
|
+
n as getAutomationRunFileDownloadUrl,
|
|
44
|
+
g2 as getDownloadUrl,
|
|
45
|
+
q as getRun,
|
|
46
|
+
s as getRunFileUrl,
|
|
47
|
+
r as getRunFiles,
|
|
48
|
+
a4 as getUploadUrl,
|
|
49
|
+
t as isActiveStatus,
|
|
50
|
+
i as isEmbedded,
|
|
51
|
+
u3 as isTerminalStatus,
|
|
52
|
+
v as listAutomationRunFiles,
|
|
53
|
+
w as listRuns,
|
|
54
|
+
x as listRunsByAgent,
|
|
55
|
+
y as listRunsByExternalId,
|
|
56
|
+
o as onInitMessage,
|
|
57
|
+
p as parentApiRequest,
|
|
58
|
+
p2 as pbBulkDelete,
|
|
109
59
|
b4 as pbBulkUpdate,
|
|
110
60
|
c4 as pbCreate,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
61
|
+
d3 as pbDelete,
|
|
62
|
+
e3 as pbGet,
|
|
63
|
+
f2 as pbList,
|
|
64
|
+
h2 as pbSearch,
|
|
65
|
+
i2 as pbSql,
|
|
66
|
+
j2 as pbUpdate,
|
|
67
|
+
k2 as pbUpdateRecord,
|
|
68
|
+
l2 as pbUpsert,
|
|
69
|
+
z as pollAutomationRun,
|
|
120
70
|
A2 as pollRun,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
u3 as useAutomationRun,
|
|
130
|
-
a4 as useFileUpload,
|
|
71
|
+
a3 as postReadyMessage,
|
|
72
|
+
q2 as queryClient,
|
|
73
|
+
s2 as sendEmail,
|
|
74
|
+
s3 as stripHtml,
|
|
75
|
+
u4 as uploadFile,
|
|
76
|
+
u as useAutomationAgent,
|
|
77
|
+
u2 as useAutomationRun,
|
|
78
|
+
a2 as useFileUpload,
|
|
131
79
|
b2 as useLumeraUser,
|
|
132
80
|
c2 as usePbSql,
|
|
133
|
-
|
|
134
|
-
|
|
81
|
+
d as usePbUpdate,
|
|
82
|
+
e as useSqlTable
|
|
135
83
|
};
|
package/dist/lib/api.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type PbRecord = Record<string, unknown> & {
|
|
|
16
16
|
export type PbSqlRequest = {
|
|
17
17
|
/** SQL query string */
|
|
18
18
|
sql: string;
|
|
19
|
-
/** Named parameters (use
|
|
19
|
+
/** Named parameters (use {:name} in SQL) */
|
|
20
20
|
params?: Record<string, unknown>;
|
|
21
21
|
/** Positional arguments (use ? in SQL) */
|
|
22
22
|
args?: unknown[];
|
|
@@ -126,7 +126,7 @@ export type EmailSendResult = {
|
|
|
126
126
|
/**
|
|
127
127
|
* Execute a SQL query against the tenant database.
|
|
128
128
|
*
|
|
129
|
-
* @param req - SQL query request with
|
|
129
|
+
* @param req - SQL query request with sql and optional params/args
|
|
130
130
|
* @returns Query result with rows and metadata
|
|
131
131
|
*
|
|
132
132
|
* @example
|
|
@@ -139,7 +139,7 @@ export type EmailSendResult = {
|
|
|
139
139
|
* @example
|
|
140
140
|
* // With named parameters
|
|
141
141
|
* const result = await pbSql<{ count: number }>({
|
|
142
|
-
* sql: 'SELECT COUNT(*) as count FROM orders WHERE status =
|
|
142
|
+
* sql: 'SELECT COUNT(*) as count FROM orders WHERE status = {:status}',
|
|
143
143
|
* params: { status: 'pending' }
|
|
144
144
|
* });
|
|
145
145
|
*/
|
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,mCAA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@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-CNgQ5MSR.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-C2z38WwO.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 {
|