@awarevue/api-types 2.0.125 → 2.0.127

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.
@@ -89,6 +89,8 @@ exports.eventKindLabels = {
89
89
  'user-logged-in': 'User Logged In',
90
90
  'user-logged-out': 'User Logged Out',
91
91
  'sensor-activated': 'Sensor Activated',
92
+ 'macro-activated': 'Macro Activated',
93
+ 'access-path-activated': 'Access Path Activated',
92
94
  };
93
95
  exports.eventSchemaByKind = {
94
96
  ...alarm_1.alarmEventSchemasByKind,
@@ -107,10 +109,7 @@ exports.eventSchemaByKind = {
107
109
  'sensor-activated': exports.sSensorActivated,
108
110
  };
109
111
  exports.eventsByDeviceType = {
110
- camera: [
111
- ...Object.keys(camera_1.cameraEventSchemasByKind),
112
- 'motion-detected',
113
- ],
112
+ camera: [...Object.keys(camera_1.cameraEventSchemasByKind)],
114
113
  door: Object.keys(door_1.doorEventSchemaByKind),
115
114
  'io-board': Object.keys(io_board_1.ioBoardEventSchemaByKind),
116
115
  'panic-button': Object.keys(panic_button_1.panicButtonEventSchemaByKind),
@@ -56,4 +56,16 @@ export declare const sUserLoggedOut: z.ZodObject<{
56
56
  }, z.core.$strip>;
57
57
  export type UserLoggedIn = z.infer<typeof sUserLoggedIn>;
58
58
  export type UserLoggedOut = z.infer<typeof sUserLoggedOut>;
59
- export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped | UserLoggedIn | UserLoggedOut;
59
+ export declare const sMacroActivated: z.ZodObject<{
60
+ kind: z.ZodLiteral<"macro-activated">;
61
+ macroId: z.ZodString;
62
+ displayName: z.ZodString;
63
+ }, z.core.$strip>;
64
+ export declare const sAccessPathActivated: z.ZodObject<{
65
+ kind: z.ZodLiteral<"access-path-activated">;
66
+ macroId: z.ZodString;
67
+ displayName: z.ZodString;
68
+ }, z.core.$strip>;
69
+ export type MacroActivated = z.infer<typeof sMacroActivated>;
70
+ export type AccessPathActivated = z.infer<typeof sAccessPathActivated>;
71
+ export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped | UserLoggedIn | UserLoggedOut | MacroActivated | AccessPathActivated;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sUserLoggedOut = exports.sUserLoggedIn = exports.sAgentStopped = exports.sAgentStarted = void 0;
3
+ exports.sAccessPathActivated = exports.sMacroActivated = exports.sUserLoggedOut = exports.sUserLoggedIn = exports.sAgentStopped = exports.sAgentStarted = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("../../primitives");
6
6
  // EVENTS
@@ -22,3 +22,13 @@ exports.sUserLoggedOut = zod_1.z.object({
22
22
  kind: zod_1.z.literal('user-logged-out'),
23
23
  userId: primitives_1.sUserId,
24
24
  });
25
+ exports.sMacroActivated = zod_1.z.object({
26
+ kind: zod_1.z.literal('macro-activated'),
27
+ macroId: zod_1.z.string(),
28
+ displayName: zod_1.z.string(),
29
+ });
30
+ exports.sAccessPathActivated = zod_1.z.object({
31
+ kind: zod_1.z.literal('access-path-activated'),
32
+ macroId: zod_1.z.string(),
33
+ displayName: zod_1.z.string(),
34
+ });
package/dist/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.125",
7
+ "version": "2.0.127",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.125",
7
+ "version": "2.0.127",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",