@databutton/firebase-types 1.92.13 → 1.92.15
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,3 +1,31 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AccountRole } from "./enums.js";
|
|
2
|
+
import type { AuditLog, Backend, Frontend, Module, UiComponent, UiFile } from "./persisted.js";
|
|
2
3
|
export type Component = Frontend | Backend | Module | UiFile | UiComponent;
|
|
3
4
|
export type ComponentType = "frontend" | "backend" | "module" | "ui-file" | "ui-component";
|
|
5
|
+
export declare namespace AuditLogEntry {
|
|
6
|
+
enum Event {
|
|
7
|
+
ACCOUNT_CREATED = "account-created",
|
|
8
|
+
MEMBER_ADDED = "member-added",
|
|
9
|
+
MEMBER_REMOVED = "member-removed",
|
|
10
|
+
MEMBER_ROLES_UPDATED = "member-roles-updated"
|
|
11
|
+
}
|
|
12
|
+
type MemberAdded = AuditLog<{
|
|
13
|
+
memberId: string;
|
|
14
|
+
memberEmail: string;
|
|
15
|
+
roles: AccountRole[];
|
|
16
|
+
}>;
|
|
17
|
+
type AccountCreated = AuditLog<{
|
|
18
|
+
owner: string;
|
|
19
|
+
ownerEmail: string;
|
|
20
|
+
}>;
|
|
21
|
+
type MemberRemoved = AuditLog<{
|
|
22
|
+
memberId: string;
|
|
23
|
+
memberEmail: string;
|
|
24
|
+
}>;
|
|
25
|
+
type MemberRolesUpdated = AuditLog<{
|
|
26
|
+
memberId: string;
|
|
27
|
+
memberEmail: string;
|
|
28
|
+
rolesAdded: AccountRole[];
|
|
29
|
+
rolesRemoved: AccountRole[];
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var AuditLogEntry;
|
|
2
|
+
(function (AuditLogEntry) {
|
|
3
|
+
let Event;
|
|
4
|
+
(function (Event) {
|
|
5
|
+
Event["ACCOUNT_CREATED"] = "account-created";
|
|
6
|
+
Event["MEMBER_ADDED"] = "member-added";
|
|
7
|
+
Event["MEMBER_REMOVED"] = "member-removed";
|
|
8
|
+
Event["MEMBER_ROLES_UPDATED"] = "member-roles-updated";
|
|
9
|
+
})(Event = AuditLogEntry.Event || (AuditLogEntry.Event = {}));
|
|
10
|
+
})(AuditLogEntry || (AuditLogEntry = {}));
|
|
2
11
|
//# sourceMappingURL=helpers.js.map
|