@enonic-types/lib-auditlog
Advanced tools
Comparing version 7.11.3 to 7.12.0-B1
@@ -16,3 +16,3 @@ /** | ||
export type { UserKey } from '@enonic-types/core'; | ||
export interface AuditLogParams { | ||
export interface AuditLogParams<Data extends Record<string, unknown>> { | ||
type: string; | ||
@@ -23,5 +23,5 @@ time?: string; | ||
objects?: string[]; | ||
data?: Record<string, unknown>; | ||
data?: Data; | ||
} | ||
export interface AuditLog { | ||
export interface AuditLog<Data extends Record<string, unknown> = Record<string, unknown>> { | ||
_id: string; | ||
@@ -33,3 +33,3 @@ type: string; | ||
objects: string[]; | ||
data: Record<string, unknown>; | ||
data: Data; | ||
} | ||
@@ -49,7 +49,7 @@ /** | ||
* @param {array} [params.objects] URIs to objects that relate to this log entry. Defaults to empty array. | ||
* @param {object} [params.data] Custom extra data for the this log entry. Defaults to empty object. | ||
* @param {object} [params.data] Custom extra data for this log entry. Defaults to empty object. | ||
* | ||
* @returns {object} Audit log created as JSON. | ||
*/ | ||
export declare function log(params: AuditLogParams): AuditLog; | ||
export declare function log<Data extends Record<string, unknown> = Record<string, unknown>>(params: AuditLogParams<Data>): AuditLog<Data>; | ||
export interface GetAuditLogParams { | ||
@@ -56,0 +56,0 @@ id: string; |
{ | ||
"name": "@enonic-types/lib-auditlog", | ||
"version": "7.11.3", | ||
"version": "7.12.0-B1", | ||
"description": "Type definitions for lib-auditlog.", | ||
@@ -30,3 +30,3 @@ "types": "auditlog.d.ts", | ||
"dependencies": { | ||
"@enonic-types/core": "7.11.3" | ||
"@enonic-types/core": "7.12.0-B1" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5561
1
+ Added@enonic-types/core@7.12.0-B1(transitive)
- Removed@enonic-types/core@7.11.3(transitive)
Updated@enonic-types/core@7.12.0-B1