@eyenest/common 1.2.6 → 1.2.8

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.
@@ -5,5 +5,7 @@ export declare enum Events {
5
5
  CAMERA_LEAVE = "camera.leave",
6
6
  MOTION_DETECTED = "motion.detected",
7
7
  MOTION_ON = "motion.on",
8
- MOTION_OFF = "motion.off"
8
+ MOTION_OFF = "motion.off",
9
+ CAMERA_DELETE = "camera.delete",
10
+ LOCATION_DELETE = "location.delete"
9
11
  }
@@ -10,4 +10,6 @@ var Events;
10
10
  Events["MOTION_DETECTED"] = "motion.detected";
11
11
  Events["MOTION_ON"] = "motion.on";
12
12
  Events["MOTION_OFF"] = "motion.off";
13
+ Events["CAMERA_DELETE"] = "camera.delete";
14
+ Events["LOCATION_DELETE"] = "location.delete";
13
15
  })(Events || (exports.Events = Events = {}));
@@ -14,4 +14,9 @@ export declare const GRPC_CLIENTS: {
14
14
  readonly protoPath: string;
15
15
  readonly env: "VIDEO_GRPC_URL";
16
16
  };
17
+ readonly EVENTS_PACKAGE: {
18
+ readonly package: "events.v1";
19
+ readonly protoPath: string;
20
+ readonly env: "EVENTS_GRPC_URL";
21
+ };
17
22
  };
@@ -18,4 +18,9 @@ exports.GRPC_CLIENTS = {
18
18
  protoPath: contracts_1.PROTO_PATHS.VIDEO,
19
19
  env: 'VIDEO_GRPC_URL',
20
20
  },
21
+ EVENTS_PACKAGE: {
22
+ package: 'events.v1',
23
+ protoPath: contracts_1.PROTO_PATHS.EVENTS,
24
+ env: 'EVENTS_GRPC_URL',
25
+ },
21
26
  };
@@ -22,4 +22,11 @@ export interface RmqEventMap {
22
22
  [Events.MOTION_OFF]: {
23
23
  cameraId: string;
24
24
  };
25
+ [Events.CAMERA_DELETE]: {
26
+ cameraId: string;
27
+ };
28
+ [Events.LOCATION_DELETE]: {
29
+ locationId: string;
30
+ cameraIds: string[];
31
+ };
25
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyenest/common",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "Core shared components for EyeNest microservice ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "typescript": "^5.9.3"
21
21
  },
22
22
  "dependencies": {
23
- "@eyenest/contracts": "^1.5.6",
23
+ "@eyenest/contracts": "^1.6.1",
24
24
  "@nestjs/common": "^11.1.9",
25
25
  "@nestjs/config": "^4.0.2",
26
26
  "@nestjs/microservices": "^11.1.9",