vr-commons 1.0.43 → 1.0.44

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,8 +1,8 @@
1
- import { EventAction, EventActorType } from "vr-models";
1
+ import { EventAction, UserRole } from "vr-models";
2
2
  import { Transaction } from "sequelize";
3
3
  interface LogEventInput {
4
4
  actorId?: string | null;
5
- actorType?: EventActorType;
5
+ actorType?: UserRole;
6
6
  action: EventAction;
7
7
  entity: string;
8
8
  entityId?: string | null;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logEvent = void 0;
4
4
  const vr_models_1 = require("vr-models");
5
- const logEvent = async ({ actorId = null, actorType = "USER", action, entity, entityId = null, metadata = {}, ipAddress = null, userAgent = null, transaction, // Optional transaction parameter
5
+ const logEvent = async ({ actorId = null, actorType = "ADMIN", action, entity, entityId = null, metadata = {}, ipAddress = null, userAgent = null, transaction, // Optional transaction parameter
6
6
  }) => {
7
7
  try {
8
8
  // Create event log with optional transaction
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -98,7 +98,7 @@
98
98
  "@types/uuid": "^10.0.0",
99
99
  "axios": "^1.9.0",
100
100
  "date-fns": "^4.1.0",
101
- "vr-models": "^1.0.25",
101
+ "vr-models": "^1.0.26",
102
102
  "rimraf": "^5.0.5",
103
103
  "typescript": "^5.3.3",
104
104
  "zod": "^3.25.20"