@mostajs/audit 1.0.1 → 1.0.2
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/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/lib/menu.d.ts +2 -0
- package/dist/lib/menu.js +16 -0
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { logAudit, getAuditUser } from './lib/audit';
|
|
|
2
2
|
export { AuditLogRepository } from './repositories/audit-log.repository';
|
|
3
3
|
export { AuditLogSchema } from './schemas/audit-log.schema';
|
|
4
4
|
export { createAuditHandlers } from './api/route';
|
|
5
|
+
export { auditMenuContribution } from './lib/menu';
|
|
5
6
|
export type { MostaAuditConfig, AuditParams, AuditFilters, AuditLogDTO, } from './types/index';
|
package/dist/index.js
CHANGED
|
@@ -7,3 +7,5 @@ export { AuditLogRepository } from './repositories/audit-log.repository';
|
|
|
7
7
|
export { AuditLogSchema } from './schemas/audit-log.schema';
|
|
8
8
|
// API helpers
|
|
9
9
|
export { createAuditHandlers } from './api/route';
|
|
10
|
+
// Menu contribution
|
|
11
|
+
export { auditMenuContribution } from './lib/menu';
|
package/dist/lib/menu.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @mostajs/audit — Menu contribution
|
|
2
|
+
// Author: Dr Hamid MADANI drmdh@msn.com
|
|
3
|
+
import { FileText } from 'lucide-react';
|
|
4
|
+
export const auditMenuContribution = {
|
|
5
|
+
moduleKey: 'audit',
|
|
6
|
+
mergeIntoGroup: 'Administration',
|
|
7
|
+
order: 80,
|
|
8
|
+
items: [
|
|
9
|
+
{
|
|
10
|
+
label: 'audit.title',
|
|
11
|
+
href: '/dashboard/audit',
|
|
12
|
+
icon: FileText,
|
|
13
|
+
permission: 'audit:view',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mostajs/audit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Reusable audit logging module — fire-and-forget logAudit() with paginated consultation",
|
|
5
5
|
"author": "Dr Hamid MADANI <drmdh@msn.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@mostajs/orm": "^1.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
+
"@mostajs/menu": ">=1.0.2",
|
|
60
61
|
"next": ">=14",
|
|
61
62
|
"react": ">=18"
|
|
62
63
|
},
|
|
@@ -66,9 +67,13 @@
|
|
|
66
67
|
},
|
|
67
68
|
"react": {
|
|
68
69
|
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"@mostajs/menu": {
|
|
72
|
+
"optional": true
|
|
69
73
|
}
|
|
70
74
|
},
|
|
71
75
|
"devDependencies": {
|
|
76
|
+
"@mostajs/menu": "^1.0.2",
|
|
72
77
|
"@types/react": "^19.0.0",
|
|
73
78
|
"next": "^16.1.6",
|
|
74
79
|
"react": "^19.0.0",
|