@octoguide/audit-utils

<dl> <dt><a href="#auditPathBuilder">auditPathBuilder</a></dt> <dd><p>build the audit log url to add to act as the key in the db entry</p> </dd> <dt><a href="#auditLogBuilder">auditLogBuilder</a></dt> <dd><p>create a audit log entry - the uuid for the ent

Usage no npm install needed!

<script type="module">
  import octoguideAuditUtils from 'https://cdn.skypack.dev/@octoguide/audit-utils';
</script>

README

Constants

auditPathBuilder

build the audit log url to add to act as the key in the db entry

auditLogBuilder

create a audit log entry - the uuid for the entry is extracted from the header if it exists

objectStateComparator

compare the current and existing state of 2 objects and build a json report

auditPathBuilder

build the audit log url to add to act as the key in the db entry

Kind: global constant

Param Description
auditId the entity (org or person) that made the change

auditLogBuilder

create a audit log entry - the uuid for the entry is extracted from the header if it exists

Kind: global constant

Param Description
uuid the user id
auditLogEntry the string entry for the audit log
auditGroup the audit grouping (i.e. org, person, etc)

objectStateComparator

compare the current and existing state of 2 objects and build a json report

Kind: global constant

Param Description
oldState the existing object
newState the new object