@krak-stack/registry 0.1.51 → 0.1.53
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/CHANGELOG.md +26 -0
- package/dist/components/ui/data-table.d.ts +20 -1
- package/dist/components/ui/data-table.js +52 -1
- package/dist/services/events/browser.js +269 -113
- package/dist/services/events/client/audit-log-table.d.ts +53 -0
- package/dist/services/events/client/audit-log-table.js +3655 -0
- package/dist/services/events/index.d.ts +147 -11
- package/dist/services/events/index.js +442 -173
- package/dist/services/events/record.d.ts +3 -0
- package/dist/services/events/record.js +14 -0
- package/dist/services/events/schema.d.ts +47 -6
- package/dist/services/events/schema.js +361 -0
- package/package.json +13 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type DataTableProps, type DataTableStatus, type DataTableReferenceItem } from "../../../components/ui/data-table.js";
|
|
3
|
+
import type { EventLogRecord } from "../schema.js";
|
|
4
|
+
declare const translations: {
|
|
5
|
+
en: {
|
|
6
|
+
title: string;
|
|
7
|
+
time: string;
|
|
8
|
+
action: string;
|
|
9
|
+
target: string;
|
|
10
|
+
actor: string;
|
|
11
|
+
method: string;
|
|
12
|
+
actorMember: string;
|
|
13
|
+
impersonatedBy: string;
|
|
14
|
+
actorOrganization: string;
|
|
15
|
+
methodApiKey: string;
|
|
16
|
+
methodSession: string;
|
|
17
|
+
methodUnknown: string;
|
|
18
|
+
};
|
|
19
|
+
fr: {
|
|
20
|
+
title: string;
|
|
21
|
+
time: string;
|
|
22
|
+
action: string;
|
|
23
|
+
target: string;
|
|
24
|
+
actor: string;
|
|
25
|
+
method: string;
|
|
26
|
+
actorMember: string;
|
|
27
|
+
impersonatedBy: string;
|
|
28
|
+
actorOrganization: string;
|
|
29
|
+
methodApiKey: string;
|
|
30
|
+
methodSession: string;
|
|
31
|
+
methodUnknown: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type AuditLogMessages = typeof translations.en;
|
|
35
|
+
export type AuditActor = DataTableReferenceItem & {
|
|
36
|
+
type: "user" | "organization";
|
|
37
|
+
id: string;
|
|
38
|
+
};
|
|
39
|
+
export type AuditLogTableProps = DataTableStatus & Pick<DataTableProps<EventLogRecord>, "state" | "onStateChange"> & {
|
|
40
|
+
entries: readonly EventLogRecord[];
|
|
41
|
+
/** Total matching records from the query response; paging lives in state. */
|
|
42
|
+
rowCount: number;
|
|
43
|
+
/** Overrides the shared KrakstackProvider locale when supplied. */
|
|
44
|
+
locale?: string;
|
|
45
|
+
messages?: Readonly<Record<string, Partial<AuditLogMessages>>>;
|
|
46
|
+
/** Current profiles the viewer may access. Matched by type and ID, including user impersonators.
|
|
47
|
+
* Missing profiles use neutral labels: the list may be loading, incomplete, or unavailable.
|
|
48
|
+
*/
|
|
49
|
+
actors?: readonly AuditActor[];
|
|
50
|
+
renderAction?: (entry: EventLogRecord) => ReactNode;
|
|
51
|
+
};
|
|
52
|
+
export declare const AuditLogTable: ({ entries, rowCount, locale: localeOverride, messages, actors, renderAction, state, onStateChange, ...status }: AuditLogTableProps) => import("react").JSX.Element;
|
|
53
|
+
export {};
|