@awarevue/api-types 2.0.126 → 2.0.128

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,
@@ -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
+ });
@@ -633,6 +633,7 @@ export declare const responseSchemasByType: {
633
633
  startTime: z.ZodNumber;
634
634
  id: z.ZodString;
635
635
  status: z.ZodString;
636
+ progress: z.ZodOptional<z.ZodNumber>;
636
637
  size: z.ZodOptional<z.ZodString>;
637
638
  expires: z.ZodOptional<z.ZodNumber>;
638
639
  }, z.core.$strip>>;
@@ -17,6 +17,7 @@ export declare const sExportItem: z.ZodObject<{
17
17
  startTime: z.ZodNumber;
18
18
  id: z.ZodString;
19
19
  status: z.ZodString;
20
+ progress: z.ZodOptional<z.ZodNumber>;
20
21
  size: z.ZodOptional<z.ZodString>;
21
22
  expires: z.ZodOptional<z.ZodNumber>;
22
23
  }, z.core.$strip>;
@@ -26,6 +27,7 @@ export declare const sGetExportsResponse: z.ZodArray<z.ZodObject<{
26
27
  startTime: z.ZodNumber;
27
28
  id: z.ZodString;
28
29
  status: z.ZodString;
30
+ progress: z.ZodOptional<z.ZodNumber>;
29
31
  size: z.ZodOptional<z.ZodString>;
30
32
  expires: z.ZodOptional<z.ZodNumber>;
31
33
  }, z.core.$strip>>;
@@ -49,6 +51,7 @@ export declare const nvrExporterResponseSchemas: {
49
51
  startTime: z.ZodNumber;
50
52
  id: z.ZodString;
51
53
  status: z.ZodString;
54
+ progress: z.ZodOptional<z.ZodNumber>;
52
55
  size: z.ZodOptional<z.ZodString>;
53
56
  expires: z.ZodOptional<z.ZodNumber>;
54
57
  }, z.core.$strip>>;
@@ -21,6 +21,7 @@ exports.sExportItem = zod_1.z.object({
21
21
  startTime: zod_1.z.number().int().nonnegative(),
22
22
  id: zod_1.z.string().nonempty(),
23
23
  status: zod_1.z.string().nonempty(),
24
+ progress: zod_1.z.number().optional(),
24
25
  size: zod_1.z.string().nonempty().optional(),
25
26
  expires: zod_1.z.number().int().nonnegative().optional(),
26
27
  });
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.126",
7
+ "version": "2.0.128",
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.126",
7
+ "version": "2.0.128",
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",