auth/cell_item_audit_metadata.ts

Audit-log metadata schemas for cell_item_insert / _move / _delete.

IDs only (positions are opaque text, not user-derived; safe to log). Apps register these via extra_events: on create_audit_log_config.

view source

Declarations
#

3 declarations

CellItemDeleteAuditMetadata
#

auth/cell_item_audit_metadata.ts view source

value + type

{ parent_id: Branded<string, "Uuid">; position: string; child_id: Branded<string, "Uuid">; } & Record<string, unknown>

type { parent_id: Branded<string, "Uuid">; position: string; child_id: Branded<string, "Uuid">; } & Record<string, unknown>

import {CellItemDeleteAuditMetadata} from '@fuzdev/fuz_app/auth/cell_item_audit_metadata.js';

Metadata envelope for cell_item_delete.

parent_id

type Branded

position

type string

child_id

type Branded

[key: string]

type unknown

CellItemInsertAuditMetadata
#

auth/cell_item_audit_metadata.ts view source

value + type

{ parent_id: Branded<string, "Uuid">; position: string; child_id: Branded<string, "Uuid">; } & Record<string, unknown>

type { parent_id: Branded<string, "Uuid">; position: string; child_id: Branded<string, "Uuid">; } & Record<string, unknown>

import {CellItemInsertAuditMetadata} from '@fuzdev/fuz_app/auth/cell_item_audit_metadata.js';

Metadata envelope for cell_item_insert.

parent_id

type Branded

position

type string

child_id

type Branded

[key: string]

type unknown

CellItemMoveAuditMetadata
#

auth/cell_item_audit_metadata.ts view source

value + type

{ parent_id: Branded<string, "Uuid">; position_old: string; position_new: string; } & Record<string, unknown>

type { parent_id: Branded<string, "Uuid">; position_old: string; position_new: string; } & Record<string, unknown>

import {CellItemMoveAuditMetadata} from '@fuzdev/fuz_app/auth/cell_item_audit_metadata.js';

Metadata envelope for cell_item_move. Carries both old and new position so the audit trail shows the reorder without a join back to the live row.

parent_id

type Branded

position_old

type string

position_new

type string

[key: string]

type unknown

Depends on
#

Imported by
#