@lumerahq/ui 0.13.0-dev.0 → 0.13.0-dev.2
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 +21 -40
- package/dist/{RecordSheet-BwslIDfX.js → RecordSheet-CawHELpB.js} +7382 -10779
- package/dist/audit-log-BPvip04_.js +128 -0
- package/dist/{automations-D4tZC_G7.js → automations-EgDXJ43_.js} +1 -162
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -6
- package/dist/{highlighted-body-OFNGDK62-ClrpL6m7.js → highlighted-body-OFNGDK62-TFNZl-GI.js} +1 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +7 -6
- package/dist/hooks/use-record-audit-log-snapshot.d.ts +15 -0
- package/dist/hooks/use-record-audit-log-snapshot.d.ts.map +1 -0
- package/dist/hooks/use-record-audit-log.d.ts +23 -0
- package/dist/hooks/use-record-audit-log.d.ts.map +1 -0
- package/dist/index.js +33 -28
- package/dist/lib/audit-log-core.d.ts +36 -54
- package/dist/lib/audit-log-core.d.ts.map +1 -1
- package/dist/lib/audit-log.d.ts +5 -5
- package/dist/lib/audit-log.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 +13 -8
- package/dist/mermaid-GHXKKRXX-9ec0sPET.js +4 -0
- package/dist/ui.css +1 -185
- package/dist/{use-automation-run-BHa7eyZU.js → use-automation-run-IypX1vtN.js} +3 -48
- package/dist/{use-sql-table-CkRTvZmH.js → use-sql-table-By700ZAo.js} +72 -3
- package/package.json +1 -1
- package/dist/components/audit-log/AuditLog.d.ts +0 -51
- package/dist/components/audit-log/AuditLog.d.ts.map +0 -1
- package/dist/components/audit-log/AuditLogEntry.d.ts +0 -19
- package/dist/components/audit-log/AuditLogEntry.d.ts.map +0 -1
- package/dist/components/audit-log/index.d.ts +0 -2
- package/dist/components/audit-log/index.d.ts.map +0 -1
- package/dist/hooks/use-audit-log.d.ts +0 -18
- package/dist/hooks/use-audit-log.d.ts.map +0 -1
- package/dist/mermaid-GHXKKRXX-B_NhCUBg.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState, useRef, useCallback, useMemo } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { H as ensureAutomationRun, F as createAutomationRun, A as cancelAutomationRun, z as automationStatuses, K as getAutomationRun } from "./automations-EgDXJ43_.js";
|
|
4
4
|
const QUEUED_DISCOVERY_POLL_MS = 2e3;
|
|
5
5
|
const IDLE_DISCOVERY_POLL_MS = 1e4;
|
|
6
6
|
const HIDDEN_DISCOVERY_POLL_MS = 3e4;
|
|
@@ -954,50 +954,6 @@ function replaceSession(sessions, next) {
|
|
|
954
954
|
});
|
|
955
955
|
return found ? updated : [next, ...updated];
|
|
956
956
|
}
|
|
957
|
-
function useAuditLog(collections, filters = {}, options = {}) {
|
|
958
|
-
const normalizedCollections = normalizeRecordAuditCollections(collections);
|
|
959
|
-
const pageSize = normalizeAuditLogPageSize(options.pageSize);
|
|
960
|
-
const normalizedFilters = useMemo(
|
|
961
|
-
() => ({
|
|
962
|
-
event: filters.event,
|
|
963
|
-
actor: filters.actor?.trim() || void 0,
|
|
964
|
-
since: filters.since?.trim() || void 0,
|
|
965
|
-
until: filters.until?.trim() || void 0
|
|
966
|
-
}),
|
|
967
|
-
[filters.actor, filters.event, filters.since, filters.until]
|
|
968
|
-
);
|
|
969
|
-
const query = useInfiniteQuery({
|
|
970
|
-
queryKey: ["audit-log", normalizedCollections, normalizedFilters, pageSize],
|
|
971
|
-
queryFn: ({ pageParam }) => listRecordAuditLog({
|
|
972
|
-
collections: normalizedCollections,
|
|
973
|
-
...normalizedFilters,
|
|
974
|
-
cursor: typeof pageParam === "string" && pageParam ? pageParam : void 0,
|
|
975
|
-
limit: pageSize
|
|
976
|
-
}),
|
|
977
|
-
initialPageParam: "",
|
|
978
|
-
getNextPageParam: (lastPage) => lastPage.pagination.has_more ? lastPage.pagination.next_cursor || void 0 : void 0,
|
|
979
|
-
enabled: (options.enabled ?? true) && normalizedCollections.length > 0,
|
|
980
|
-
retry: (failureCount, error) => {
|
|
981
|
-
const status = error.status;
|
|
982
|
-
return !status || status >= 500 ? failureCount < 2 : false;
|
|
983
|
-
}
|
|
984
|
-
});
|
|
985
|
-
return {
|
|
986
|
-
entries: query.data?.pages.flatMap((page) => page.audit_logs) ?? [],
|
|
987
|
-
collectionStatus: query.data?.pages[0]?.record_collections ?? [],
|
|
988
|
-
error: query.error,
|
|
989
|
-
isLoading: query.isLoading,
|
|
990
|
-
isFetching: query.isFetching,
|
|
991
|
-
isLoadingMore: query.isFetchingNextPage,
|
|
992
|
-
hasMore: Boolean(query.hasNextPage),
|
|
993
|
-
loadMore: async () => {
|
|
994
|
-
await query.fetchNextPage();
|
|
995
|
-
},
|
|
996
|
-
refresh: async () => {
|
|
997
|
-
await query.refetch();
|
|
998
|
-
}
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
957
|
function useAutomationRun(options) {
|
|
1002
958
|
const {
|
|
1003
959
|
agentId,
|
|
@@ -1128,7 +1084,6 @@ function useAutomationRun(options) {
|
|
|
1128
1084
|
}
|
|
1129
1085
|
export {
|
|
1130
1086
|
useAgentChatSessions as a,
|
|
1131
|
-
|
|
1132
|
-
useAutomationRun as c,
|
|
1087
|
+
useAutomationRun as b,
|
|
1133
1088
|
useAgentChat as u
|
|
1134
1089
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
|
|
1
|
+
import { useQueryClient, useQuery, useMutation, useInfiniteQuery } from "@tanstack/react-query";
|
|
2
2
|
import { useState, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { T as listRunsByAgent, z as automationStatuses, F as createAutomationRun, y as uploadFile, o as onInitMessage, t as pbSql, v as pbUpdateRecord } from "./automations-
|
|
3
|
+
import { T as listRunsByAgent, z as automationStatuses, F as createAutomationRun, y as uploadFile, o as onInitMessage, t as pbSql, v as pbUpdateRecord } from "./automations-EgDXJ43_.js";
|
|
4
|
+
import { n as normalizeRecordAuditCollections, d as normalizeRecordAuditPageSize, l as listRecordAuditLog, g as getRecordAuditLogSnapshot } from "./audit-log-BPvip04_.js";
|
|
4
5
|
function useAutomationAgent({
|
|
5
6
|
agentId,
|
|
6
7
|
limit = 5,
|
|
@@ -151,6 +152,72 @@ function useLumeraUser() {
|
|
|
151
152
|
}, []);
|
|
152
153
|
return hostData;
|
|
153
154
|
}
|
|
155
|
+
function useRecordAuditLog(params) {
|
|
156
|
+
const normalizedCollections = normalizeRecordAuditCollections(params.collections);
|
|
157
|
+
const pageSize = normalizeRecordAuditPageSize(params.pageSize);
|
|
158
|
+
const filters = useMemo(
|
|
159
|
+
() => ({
|
|
160
|
+
event: params.event,
|
|
161
|
+
actor: params.actor?.trim() || void 0,
|
|
162
|
+
since: params.since?.trim() || void 0,
|
|
163
|
+
until: params.until?.trim() || void 0
|
|
164
|
+
}),
|
|
165
|
+
[params.actor, params.event, params.since, params.until]
|
|
166
|
+
);
|
|
167
|
+
const query = useInfiniteQuery({
|
|
168
|
+
queryKey: ["record-audit-log", normalizedCollections, filters, pageSize],
|
|
169
|
+
queryFn: ({ pageParam }) => listRecordAuditLog({
|
|
170
|
+
collections: normalizedCollections,
|
|
171
|
+
...filters,
|
|
172
|
+
cursor: typeof pageParam === "string" && pageParam ? pageParam : void 0,
|
|
173
|
+
limit: pageSize
|
|
174
|
+
}),
|
|
175
|
+
initialPageParam: "",
|
|
176
|
+
getNextPageParam: (lastPage) => lastPage.pagination.has_more ? lastPage.pagination.next_cursor || void 0 : void 0,
|
|
177
|
+
enabled: (params.enabled ?? true) && normalizedCollections.length > 0,
|
|
178
|
+
retry: (failureCount, error) => {
|
|
179
|
+
const status = error.status;
|
|
180
|
+
return !status || status >= 500 ? failureCount < 2 : false;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
return {
|
|
184
|
+
entries: query.data?.pages.flatMap((page) => page.audit_logs) ?? [],
|
|
185
|
+
collectionStatus: query.data?.pages[0]?.record_collections ?? [],
|
|
186
|
+
error: query.error,
|
|
187
|
+
isLoading: query.isLoading,
|
|
188
|
+
isFetching: query.isFetching,
|
|
189
|
+
isLoadingMore: query.isFetchingNextPage,
|
|
190
|
+
hasMore: Boolean(query.hasNextPage),
|
|
191
|
+
loadMore: async () => {
|
|
192
|
+
await query.fetchNextPage();
|
|
193
|
+
},
|
|
194
|
+
refresh: async () => {
|
|
195
|
+
await query.refetch();
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function useRecordAuditLogSnapshot(params) {
|
|
200
|
+
const id = params.id?.trim() || "";
|
|
201
|
+
const store = params.store ?? "tenant";
|
|
202
|
+
const query = useQuery({
|
|
203
|
+
queryKey: ["record-audit-log-snapshot", id, store],
|
|
204
|
+
queryFn: () => getRecordAuditLogSnapshot(id, store),
|
|
205
|
+
enabled: (params.enabled ?? true) && id !== "",
|
|
206
|
+
retry: (failureCount, error) => {
|
|
207
|
+
const status = error.status;
|
|
208
|
+
return !status || status >= 500 ? failureCount < 2 : false;
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
return {
|
|
212
|
+
snapshot: query.data?.snapshot ?? null,
|
|
213
|
+
error: query.error,
|
|
214
|
+
isLoading: query.isLoading,
|
|
215
|
+
isFetching: query.isFetching,
|
|
216
|
+
refresh: async () => {
|
|
217
|
+
await query.refetch();
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
}
|
|
154
221
|
function buildFilterClause(filters) {
|
|
155
222
|
if (filters.length === 0) {
|
|
156
223
|
return { clause: "", args: [] };
|
|
@@ -337,6 +404,8 @@ export {
|
|
|
337
404
|
useLumeraUser as b,
|
|
338
405
|
usePbSql as c,
|
|
339
406
|
usePbUpdate as d,
|
|
340
|
-
|
|
407
|
+
useRecordAuditLog as e,
|
|
408
|
+
useRecordAuditLogSnapshot as f,
|
|
409
|
+
useSqlTable as g,
|
|
341
410
|
useAutomationAgent as u
|
|
342
411
|
};
|
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { AuditLogEntry as AuditLogEntryData, AuditLogFilterState as AuditLogFilterStateData } from '../../lib/audit-log';
|
|
3
|
-
export type AuditLogDensity = 'compact' | 'comfortable';
|
|
4
|
-
export type AuditLogFilterState = AuditLogFilterStateData;
|
|
5
|
-
export type AuditLogRecord = AuditLogEntryData;
|
|
6
|
-
export type AuditLogProps = {
|
|
7
|
-
/** Project-local bare collection names (or physical API names outside a project), maximum 20. */
|
|
8
|
-
collections: readonly string[];
|
|
9
|
-
/** Friendly display names keyed by the same bare or physical names used in collections. */
|
|
10
|
-
collectionLabels?: Readonly<Record<string, string>>;
|
|
11
|
-
/** Singular activity nouns keyed by the same names used in collections, e.g. "invoice" or "payment". */
|
|
12
|
-
activityNouns?: Readonly<Record<string, string>>;
|
|
13
|
-
/** Controlled filter state. */
|
|
14
|
-
filters?: AuditLogFilterState;
|
|
15
|
-
/** Initial filters when the component manages its own state. */
|
|
16
|
-
defaultFilters?: Partial<AuditLogFilterState>;
|
|
17
|
-
/** Called after any user filter change, in controlled and uncontrolled modes. */
|
|
18
|
-
onFiltersChange?: (filters: AuditLogFilterState) => void;
|
|
19
|
-
/** Rows fetched per page. Defaults to 50; the API maximum is 200. */
|
|
20
|
-
pageSize?: number;
|
|
21
|
-
/** Maximum rows in one CSV export. Defaults to 10,000 and cannot exceed it. */
|
|
22
|
-
exportMaxRows?: number;
|
|
23
|
-
/** Download name for CSV exports. Defaults to a date-stamped name. */
|
|
24
|
-
exportFilename?: string;
|
|
25
|
-
/** Header text. Defaults to "Activity". */
|
|
26
|
-
title?: string;
|
|
27
|
-
/** Row spacing. Defaults to "compact". */
|
|
28
|
-
density?: AuditLogDensity;
|
|
29
|
-
/** Show the collection column. Defaults to true. */
|
|
30
|
-
showCollectionColumn?: boolean;
|
|
31
|
-
/** Show the actor column. Defaults to true. */
|
|
32
|
-
showActorColumn?: boolean;
|
|
33
|
-
/** Include record system fields in before/after values. Defaults to true. */
|
|
34
|
-
showSystemFields?: boolean;
|
|
35
|
-
/** Friendly labels keyed by a field's API key or current label. */
|
|
36
|
-
fieldLabels?: Readonly<Record<string, string>>;
|
|
37
|
-
/** Return an app-specific destination for an audit entry's record. */
|
|
38
|
-
getRecordHref?: (entry: AuditLogEntryData) => string | undefined;
|
|
39
|
-
/** Called when the app-specific record action is selected. */
|
|
40
|
-
onRecordClick?: (entry: AuditLogEntryData) => void;
|
|
41
|
-
/** Optional replacement for the built-in loading state. */
|
|
42
|
-
loadingState?: ReactNode;
|
|
43
|
-
/** Optional replacement for the built-in empty state. */
|
|
44
|
-
emptyState?: ReactNode;
|
|
45
|
-
/** Optional replacement for an API error state. */
|
|
46
|
-
errorState?: (error: Error) => ReactNode;
|
|
47
|
-
/** Optional classes for the outer container. */
|
|
48
|
-
className?: string;
|
|
49
|
-
};
|
|
50
|
-
export declare function AuditLog({ collections, collectionLabels, activityNouns, filters: controlledFilters, defaultFilters, onFiltersChange, pageSize, exportMaxRows, exportFilename, title, density, showCollectionColumn, showActorColumn, showSystemFields, fieldLabels, getRecordHref, onRecordClick, loadingState, emptyState, errorState, className, }: AuditLogProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
//# sourceMappingURL=AuditLog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLog.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/AuditLog.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,SAAS,EAA+C,MAAM,OAAO,CAAC;AAmBpF,OAAO,EAGL,KAAK,aAAa,IAAI,iBAAiB,EAEvC,KAAK,mBAAmB,IAAI,uBAAuB,EAOpD,MAAM,iBAAiB,CAAC;AAGzB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,aAAa,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IAC1B,iGAAiG;IACjG,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,2FAA2F;IAC3F,gBAAgB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD,wGAAwG;IACxG,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD,+BAA+B;IAC/B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,gEAAgE;IAChE,cAAc,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC9C,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACzD,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,oDAAoD;IACpD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,+CAA+C;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mEAAmE;IACnE,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,sEAAsE;IACtE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,MAAM,GAAG,SAAS,CAAC;IACjE,8DAA8D;IAC9D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACnD,2DAA2D;IAC3D,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,yDAAyD;IACzD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,mDAAmD;IACnD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC;IACzC,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA4FF,wBAAgB,QAAQ,CAAC,EACvB,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,OAAO,EAAE,iBAAiB,EAC1B,cAAc,EACd,eAAe,EACf,QAAa,EACb,aAAa,EACb,cAAc,EACd,KAAkB,EAClB,OAAmB,EACnB,oBAA2B,EAC3B,eAAsB,EACtB,gBAAuB,EACvB,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,GACV,EAAE,aAAa,2CA+lBf"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AuditLogDensity } from './AuditLog';
|
|
2
|
-
import { AuditLogEntry as AuditLogEntryData } from '../../lib/audit-log';
|
|
3
|
-
type AuditLogEntryProps = {
|
|
4
|
-
entry: AuditLogEntryData;
|
|
5
|
-
collectionApiName: string;
|
|
6
|
-
collectionLabel: string;
|
|
7
|
-
activityCollectionLabel?: string;
|
|
8
|
-
density: AuditLogDensity;
|
|
9
|
-
showCollectionColumn: boolean;
|
|
10
|
-
showActorColumn: boolean;
|
|
11
|
-
showSystemFields: boolean;
|
|
12
|
-
fieldLabels?: Readonly<Record<string, string>>;
|
|
13
|
-
columnCount: number;
|
|
14
|
-
getRecordHref?: (entry: AuditLogEntryData) => string | undefined;
|
|
15
|
-
onRecordClick?: (entry: AuditLogEntryData) => void;
|
|
16
|
-
};
|
|
17
|
-
export declare function AuditLogEntry({ entry, collectionApiName, collectionLabel, activityCollectionLabel, density, showCollectionColumn, showActorColumn, showSystemFields, fieldLabels, columnCount, getRecordHref, onRecordClick, }: AuditLogEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=AuditLogEntry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLogEntry.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/AuditLogEntry.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,OAAO,EACL,KAAK,aAAa,IAAI,iBAAiB,EAMxC,MAAM,iBAAiB,CAAC;AA6KzB,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,iBAAiB,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,OAAO,EAAE,eAAe,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,MAAM,GAAG,SAAS,CAAC;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,OAAO,EACP,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,GACd,EAAE,kBAAkB,2CA8HpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,MAAM,YAAY,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AuditLogCollectionStatus, AuditLogEntry, AuditLogFilters } from '../lib/audit-log';
|
|
2
|
-
export type UseAuditLogOptions = {
|
|
3
|
-
pageSize?: number;
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export type UseAuditLogResult = {
|
|
7
|
-
entries: AuditLogEntry[];
|
|
8
|
-
collectionStatus: AuditLogCollectionStatus[];
|
|
9
|
-
error: Error | null;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
isFetching: boolean;
|
|
12
|
-
isLoadingMore: boolean;
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
loadMore: () => Promise<void>;
|
|
15
|
-
refresh: () => Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
export declare function useAuditLog(collections: readonly string[], filters?: AuditLogFilters, options?: UseAuditLogOptions): UseAuditLogResult;
|
|
18
|
-
//# sourceMappingURL=use-audit-log.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-audit-log.d.ts","sourceRoot":"","sources":["../../src/hooks/use-audit-log.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,eAAe,EAKrB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,gBAAgB,EAAE,wBAAwB,EAAE,CAAC;IAC7C,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAEF,wBAAgB,WAAW,CACzB,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,GAAE,eAAoB,EAC7B,OAAO,GAAE,kBAAuB,GAC/B,iBAAiB,CA+CnB"}
|