@awarevue/api-types 1.0.37 → 1.0.39

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.
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare const DISPLAY: "display";
3
+ export declare const sDisplaySpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4
+ export type DisplaySpecs = z.infer<typeof sDisplaySpecs>;
5
+ export interface DisplaySetViewCommand {
6
+ command: 'display.set-view';
7
+ params: {
8
+ tile: {
9
+ cameras: {
10
+ username: string;
11
+ password: string;
12
+ streams: {
13
+ resolution: string | null;
14
+ rtspUrl: string;
15
+ }[];
16
+ }[];
17
+ }[];
18
+ };
19
+ }
20
+ export type DisplayCommand = DisplaySetViewCommand;
21
+ export interface DisplayStateDto {
22
+ online: Record<string, boolean>;
23
+ }
24
+ export declare const sDisplayUnitOfflineEvent: z.ZodObject<{
25
+ kind: z.ZodLiteral<"display-unit-offline">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ kind: "display-unit-offline";
28
+ }, {
29
+ kind: "display-unit-offline";
30
+ }>;
31
+ export type DisplayUnitOfflineEvent = z.infer<typeof sDisplayUnitOfflineEvent>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sDisplayUnitOfflineEvent = exports.sDisplaySpecs = exports.DISPLAY = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.DISPLAY = 'display';
6
+ // SPECS
7
+ exports.sDisplaySpecs = zod_1.z.object({});
8
+ // EVENTS
9
+ exports.sDisplayUnitOfflineEvent = zod_1.z.object({
10
+ kind: zod_1.z.literal('display-unit-offline'),
11
+ });
12
+ //Could report on other events in the future like bad streams, high cpu usage, etc.
@@ -13,3 +13,4 @@ export * from './server';
13
13
  export * from './alarm';
14
14
  export * from './device-gateway';
15
15
  export * from './presence-tracker';
16
+ export * from './display';
@@ -29,3 +29,4 @@ __exportStar(require("./server"), exports);
29
29
  __exportStar(require("./alarm"), exports);
30
30
  __exportStar(require("./device-gateway"), exports);
31
31
  __exportStar(require("./presence-tracker"), exports);
32
+ __exportStar(require("./display"), exports);
@@ -18,8 +18,11 @@ export interface RunMacro {
18
18
  }
19
19
  export type ServerCommand = RunMacro;
20
20
  export type AccessControlProviderState = AccessControlCapabilityReport & {
21
+ syncInProgress: boolean;
22
+ lastSyncError: string | null;
23
+ syncTotal: number;
24
+ syncComplete: number;
21
25
  running: boolean;
22
- lastObjectTimestamp: number;
23
26
  };
24
27
  export type ServerState = {
25
28
  runningAgents: Record<string, string[]>;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",