@awarevue/api-types 2.0.137 → 2.0.138

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.
@@ -40,6 +40,10 @@ export declare const sAddViewRequest: z.ZodObject<{
40
40
  deviceId: z.ZodString;
41
41
  streamId: z.ZodString;
42
42
  }, z.core.$strip>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ area: z.ZodString;
45
+ type: z.ZodLiteral<"image">;
46
+ fileId: z.ZodUUID;
43
47
  }, z.core.$strip>]>>;
44
48
  }, z.core.$strip>;
45
49
  }, z.core.$strip>;
@@ -84,6 +88,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
84
88
  deviceId: z.ZodString;
85
89
  streamId: z.ZodString;
86
90
  }, z.core.$strip>;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ area: z.ZodString;
93
+ type: z.ZodLiteral<"image">;
94
+ fileId: z.ZodUUID;
87
95
  }, z.core.$strip>]>>;
88
96
  }, z.core.$strip>>;
89
97
  }, z.core.$strip>;
@@ -40,7 +40,13 @@ export declare const sPlaybackTrackArea: z.ZodObject<{
40
40
  }, z.core.$strip>;
41
41
  }, z.core.$strip>;
42
42
  export type PlaybackTrackArea = z.infer<typeof sPlaybackTrackArea>;
43
- export type ViewAreaContents = LayoutArea | LayoutSelectorArea | DeviceArea | DeviceCarouselArea | PlaybackTrackArea;
43
+ export declare const sImageArea: z.ZodObject<{
44
+ area: z.ZodString;
45
+ type: z.ZodLiteral<"image">;
46
+ fileId: z.ZodUUID;
47
+ }, z.core.$strip>;
48
+ export type ImageArea = z.infer<typeof sImageArea>;
49
+ export type ViewAreaContents = LayoutArea | LayoutSelectorArea | DeviceArea | DeviceCarouselArea | PlaybackTrackArea | ImageArea;
44
50
  export declare const sViewAreaContents: z.ZodUnion<readonly [z.ZodObject<{
45
51
  area: z.ZodString;
46
52
  type: z.ZodLiteral<"layout">;
@@ -72,6 +78,10 @@ export declare const sViewAreaContents: z.ZodUnion<readonly [z.ZodObject<{
72
78
  deviceId: z.ZodString;
73
79
  streamId: z.ZodString;
74
80
  }, z.core.$strip>;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ area: z.ZodString;
83
+ type: z.ZodLiteral<"image">;
84
+ fileId: z.ZodUUID;
75
85
  }, z.core.$strip>]>;
76
86
  export declare const sViewConfig: z.ZodObject<{
77
87
  rows: z.ZodNumber;
@@ -109,6 +119,10 @@ export declare const sViewConfig: z.ZodObject<{
109
119
  deviceId: z.ZodString;
110
120
  streamId: z.ZodString;
111
121
  }, z.core.$strip>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ area: z.ZodString;
124
+ type: z.ZodLiteral<"image">;
125
+ fileId: z.ZodUUID;
112
126
  }, z.core.$strip>]>>;
113
127
  }, z.core.$strip>;
114
128
  export type ViewConfig = z.infer<typeof sViewConfig>;
@@ -153,6 +167,10 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
153
167
  deviceId: z.ZodString;
154
168
  streamId: z.ZodString;
155
169
  }, z.core.$strip>;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ area: z.ZodString;
172
+ type: z.ZodLiteral<"image">;
173
+ fileId: z.ZodUUID;
156
174
  }, z.core.$strip>]>>;
157
175
  }, z.core.$strip>>;
158
176
  export type ViewInfo = z.infer<typeof sViewInfo>;
@@ -201,6 +219,10 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
201
219
  deviceId: z.ZodString;
202
220
  streamId: z.ZodString;
203
221
  }, z.core.$strip>;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ area: z.ZodString;
224
+ type: z.ZodLiteral<"image">;
225
+ fileId: z.ZodUUID;
204
226
  }, z.core.$strip>]>>;
205
227
  }, z.core.$strip>>;
206
228
  export type ViewDto = z.infer<typeof sViewDto>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sViewDto = exports.sViewInfo = exports.sViewConfig = exports.sViewAreaContents = exports.sPlaybackTrackArea = exports.sDeviceCarouselArea = exports.sDeviceArea = exports.sLayoutSelectorArea = exports.sLayoutArea = void 0;
3
+ exports.sViewDto = exports.sViewInfo = exports.sViewConfig = exports.sViewAreaContents = exports.sImageArea = exports.sPlaybackTrackArea = exports.sDeviceCarouselArea = exports.sDeviceArea = exports.sLayoutSelectorArea = exports.sLayoutArea = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sLayoutArea = zod_1.z.object({
6
6
  area: zod_1.z.string().nonempty(),
@@ -43,12 +43,18 @@ exports.sPlaybackTrackArea = zod_1.z.object({
43
43
  .describe('The track within the controller. It is the stream ID for the camera in the track.'),
44
44
  }),
45
45
  });
46
+ exports.sImageArea = zod_1.z.object({
47
+ area: zod_1.z.string().nonempty(),
48
+ type: zod_1.z.literal('image'),
49
+ fileId: zod_1.z.uuid(),
50
+ });
46
51
  exports.sViewAreaContents = zod_1.z.union([
47
52
  exports.sLayoutArea,
48
53
  exports.sLayoutSelectorArea,
49
54
  exports.sDeviceArea,
50
55
  exports.sDeviceCarouselArea,
51
56
  exports.sPlaybackTrackArea,
57
+ exports.sImageArea,
52
58
  ]);
53
59
  exports.sViewConfig = zod_1.z.object({
54
60
  rows: zod_1.z.number(),
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.137",
7
+ "version": "2.0.138",
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.137",
7
+ "version": "2.0.138",
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",