@awarevue/api-types 1.0.112 → 1.0.114
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.
- package/dist/layout.d.ts +36 -0
- package/dist/layout.js +2 -0
- package/dist/package.json +1 -1
- package/dist/view.d.ts +178 -1
- package/dist/view.js +11 -1
- package/package.json +1 -1
package/dist/layout.d.ts
CHANGED
|
@@ -5,18 +5,24 @@ export declare const sLayoutDeviceDto: z.ZodObject<{
|
|
|
5
5
|
y: z.ZodNumber;
|
|
6
6
|
scale: z.ZodNumber;
|
|
7
7
|
rotation: z.ZodNumber;
|
|
8
|
+
fov: z.ZodNumber;
|
|
9
|
+
far: z.ZodNumber;
|
|
8
10
|
}, "strip", z.ZodTypeAny, {
|
|
9
11
|
scale: number;
|
|
10
12
|
x: number;
|
|
11
13
|
y: number;
|
|
12
14
|
deviceId: string;
|
|
13
15
|
rotation: number;
|
|
16
|
+
fov: number;
|
|
17
|
+
far: number;
|
|
14
18
|
}, {
|
|
15
19
|
scale: number;
|
|
16
20
|
x: number;
|
|
17
21
|
y: number;
|
|
18
22
|
deviceId: string;
|
|
19
23
|
rotation: number;
|
|
24
|
+
fov: number;
|
|
25
|
+
far: number;
|
|
20
26
|
}>;
|
|
21
27
|
export type LayoutDeviceDto = z.infer<typeof sLayoutDeviceDto>;
|
|
22
28
|
export declare const sAddLayoutRequest: z.ZodObject<{
|
|
@@ -30,18 +36,24 @@ export declare const sAddLayoutRequest: z.ZodObject<{
|
|
|
30
36
|
y: z.ZodNumber;
|
|
31
37
|
scale: z.ZodNumber;
|
|
32
38
|
rotation: z.ZodNumber;
|
|
39
|
+
fov: z.ZodNumber;
|
|
40
|
+
far: z.ZodNumber;
|
|
33
41
|
}, "strip", z.ZodTypeAny, {
|
|
34
42
|
scale: number;
|
|
35
43
|
x: number;
|
|
36
44
|
y: number;
|
|
37
45
|
deviceId: string;
|
|
38
46
|
rotation: number;
|
|
47
|
+
fov: number;
|
|
48
|
+
far: number;
|
|
39
49
|
}, {
|
|
40
50
|
scale: number;
|
|
41
51
|
x: number;
|
|
42
52
|
y: number;
|
|
43
53
|
deviceId: string;
|
|
44
54
|
rotation: number;
|
|
55
|
+
fov: number;
|
|
56
|
+
far: number;
|
|
45
57
|
}>, "many">;
|
|
46
58
|
colorize: z.ZodBoolean;
|
|
47
59
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -52,6 +64,8 @@ export declare const sAddLayoutRequest: z.ZodObject<{
|
|
|
52
64
|
y: number;
|
|
53
65
|
deviceId: string;
|
|
54
66
|
rotation: number;
|
|
67
|
+
fov: number;
|
|
68
|
+
far: number;
|
|
55
69
|
}[];
|
|
56
70
|
thumbnailId: string;
|
|
57
71
|
imageId: string;
|
|
@@ -65,6 +79,8 @@ export declare const sAddLayoutRequest: z.ZodObject<{
|
|
|
65
79
|
y: number;
|
|
66
80
|
deviceId: string;
|
|
67
81
|
rotation: number;
|
|
82
|
+
fov: number;
|
|
83
|
+
far: number;
|
|
68
84
|
}[];
|
|
69
85
|
thumbnailId: string;
|
|
70
86
|
imageId: string;
|
|
@@ -84,18 +100,24 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
84
100
|
y: z.ZodNumber;
|
|
85
101
|
scale: z.ZodNumber;
|
|
86
102
|
rotation: z.ZodNumber;
|
|
103
|
+
fov: z.ZodNumber;
|
|
104
|
+
far: z.ZodNumber;
|
|
87
105
|
}, "strip", z.ZodTypeAny, {
|
|
88
106
|
scale: number;
|
|
89
107
|
x: number;
|
|
90
108
|
y: number;
|
|
91
109
|
deviceId: string;
|
|
92
110
|
rotation: number;
|
|
111
|
+
fov: number;
|
|
112
|
+
far: number;
|
|
93
113
|
}, {
|
|
94
114
|
scale: number;
|
|
95
115
|
x: number;
|
|
96
116
|
y: number;
|
|
97
117
|
deviceId: string;
|
|
98
118
|
rotation: number;
|
|
119
|
+
fov: number;
|
|
120
|
+
far: number;
|
|
99
121
|
}>, "many">>;
|
|
100
122
|
colorize: z.ZodOptional<z.ZodBoolean>;
|
|
101
123
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -108,6 +130,8 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
108
130
|
y: number;
|
|
109
131
|
deviceId: string;
|
|
110
132
|
rotation: number;
|
|
133
|
+
fov: number;
|
|
134
|
+
far: number;
|
|
111
135
|
}[] | undefined;
|
|
112
136
|
thumbnailId?: string | undefined;
|
|
113
137
|
imageId?: string | undefined;
|
|
@@ -122,6 +146,8 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
122
146
|
y: number;
|
|
123
147
|
deviceId: string;
|
|
124
148
|
rotation: number;
|
|
149
|
+
fov: number;
|
|
150
|
+
far: number;
|
|
125
151
|
}[] | undefined;
|
|
126
152
|
thumbnailId?: string | undefined;
|
|
127
153
|
imageId?: string | undefined;
|
|
@@ -143,18 +169,24 @@ export declare const sLayoutDto: z.ZodObject<{
|
|
|
143
169
|
y: z.ZodNumber;
|
|
144
170
|
scale: z.ZodNumber;
|
|
145
171
|
rotation: z.ZodNumber;
|
|
172
|
+
fov: z.ZodNumber;
|
|
173
|
+
far: z.ZodNumber;
|
|
146
174
|
}, "strip", z.ZodTypeAny, {
|
|
147
175
|
scale: number;
|
|
148
176
|
x: number;
|
|
149
177
|
y: number;
|
|
150
178
|
deviceId: string;
|
|
151
179
|
rotation: number;
|
|
180
|
+
fov: number;
|
|
181
|
+
far: number;
|
|
152
182
|
}, {
|
|
153
183
|
scale: number;
|
|
154
184
|
x: number;
|
|
155
185
|
y: number;
|
|
156
186
|
deviceId: string;
|
|
157
187
|
rotation: number;
|
|
188
|
+
fov: number;
|
|
189
|
+
far: number;
|
|
158
190
|
}>, "many">;
|
|
159
191
|
colorize: z.ZodBoolean;
|
|
160
192
|
createdOn: z.ZodString;
|
|
@@ -172,6 +204,8 @@ export declare const sLayoutDto: z.ZodObject<{
|
|
|
172
204
|
y: number;
|
|
173
205
|
deviceId: string;
|
|
174
206
|
rotation: number;
|
|
207
|
+
fov: number;
|
|
208
|
+
far: number;
|
|
175
209
|
}[];
|
|
176
210
|
colorize: boolean;
|
|
177
211
|
thumbnailUrl: string;
|
|
@@ -189,6 +223,8 @@ export declare const sLayoutDto: z.ZodObject<{
|
|
|
189
223
|
y: number;
|
|
190
224
|
deviceId: string;
|
|
191
225
|
rotation: number;
|
|
226
|
+
fov: number;
|
|
227
|
+
far: number;
|
|
192
228
|
}[];
|
|
193
229
|
colorize: boolean;
|
|
194
230
|
thumbnailUrl: string;
|
package/dist/layout.js
CHANGED
|
@@ -11,6 +11,8 @@ exports.sLayoutDeviceDto = zod_1.default.object({
|
|
|
11
11
|
y: zod_1.default.number(),
|
|
12
12
|
scale: zod_1.default.number(),
|
|
13
13
|
rotation: zod_1.default.number(),
|
|
14
|
+
fov: zod_1.default.number(),
|
|
15
|
+
far: zod_1.default.number(),
|
|
14
16
|
});
|
|
15
17
|
exports.sAddLayoutRequest = zod_1.default.object({
|
|
16
18
|
name: zod_1.default.string().nonempty(),
|
package/dist/package.json
CHANGED
package/dist/view.d.ts
CHANGED
|
@@ -55,7 +55,24 @@ export declare const sDeviceCarouselArea: z.ZodObject<{
|
|
|
55
55
|
timeIntervalMs: number;
|
|
56
56
|
}>;
|
|
57
57
|
export type DeviceCarouselArea = z.infer<typeof sDeviceCarouselArea>;
|
|
58
|
-
export
|
|
58
|
+
export declare const sPlaybackTrackArea: z.ZodObject<{
|
|
59
|
+
area: z.ZodString;
|
|
60
|
+
type: z.ZodLiteral<"playbackTrack">;
|
|
61
|
+
controllerId: z.ZodString;
|
|
62
|
+
source: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
type: "playbackTrack";
|
|
65
|
+
source: string;
|
|
66
|
+
area: string;
|
|
67
|
+
controllerId: string;
|
|
68
|
+
}, {
|
|
69
|
+
type: "playbackTrack";
|
|
70
|
+
source: string;
|
|
71
|
+
area: string;
|
|
72
|
+
controllerId: string;
|
|
73
|
+
}>;
|
|
74
|
+
export type PlaybackTrackArea = z.infer<typeof sPlaybackTrackArea>;
|
|
75
|
+
export type ViewAreaContents = LayoutArea | LayoutSelectorArea | DeviceArea | DeviceCarouselArea | PlaybackTrackArea;
|
|
59
76
|
export declare const sViewAreaContents: z.ZodUnion<[z.ZodObject<{
|
|
60
77
|
area: z.ZodString;
|
|
61
78
|
type: z.ZodLiteral<"layout">;
|
|
@@ -104,6 +121,21 @@ export declare const sViewAreaContents: z.ZodUnion<[z.ZodObject<{
|
|
|
104
121
|
area: string;
|
|
105
122
|
deviceIds: string[];
|
|
106
123
|
timeIntervalMs: number;
|
|
124
|
+
}>, z.ZodObject<{
|
|
125
|
+
area: z.ZodString;
|
|
126
|
+
type: z.ZodLiteral<"playbackTrack">;
|
|
127
|
+
controllerId: z.ZodString;
|
|
128
|
+
source: z.ZodString;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
type: "playbackTrack";
|
|
131
|
+
source: string;
|
|
132
|
+
area: string;
|
|
133
|
+
controllerId: string;
|
|
134
|
+
}, {
|
|
135
|
+
type: "playbackTrack";
|
|
136
|
+
source: string;
|
|
137
|
+
area: string;
|
|
138
|
+
controllerId: string;
|
|
107
139
|
}>]>;
|
|
108
140
|
export declare const sViewConfig: z.ZodObject<{
|
|
109
141
|
rows: z.ZodNumber;
|
|
@@ -158,6 +190,21 @@ export declare const sViewConfig: z.ZodObject<{
|
|
|
158
190
|
area: string;
|
|
159
191
|
deviceIds: string[];
|
|
160
192
|
timeIntervalMs: number;
|
|
193
|
+
}>, z.ZodObject<{
|
|
194
|
+
area: z.ZodString;
|
|
195
|
+
type: z.ZodLiteral<"playbackTrack">;
|
|
196
|
+
controllerId: z.ZodString;
|
|
197
|
+
source: z.ZodString;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
type: "playbackTrack";
|
|
200
|
+
source: string;
|
|
201
|
+
area: string;
|
|
202
|
+
controllerId: string;
|
|
203
|
+
}, {
|
|
204
|
+
type: "playbackTrack";
|
|
205
|
+
source: string;
|
|
206
|
+
area: string;
|
|
207
|
+
controllerId: string;
|
|
161
208
|
}>]>, "many">;
|
|
162
209
|
}, "strip", z.ZodTypeAny, {
|
|
163
210
|
columns: number;
|
|
@@ -179,6 +226,11 @@ export declare const sViewConfig: z.ZodObject<{
|
|
|
179
226
|
area: string;
|
|
180
227
|
deviceIds: string[];
|
|
181
228
|
timeIntervalMs: number;
|
|
229
|
+
} | {
|
|
230
|
+
type: "playbackTrack";
|
|
231
|
+
source: string;
|
|
232
|
+
area: string;
|
|
233
|
+
controllerId: string;
|
|
182
234
|
})[];
|
|
183
235
|
hotspotArea?: string | undefined;
|
|
184
236
|
}, {
|
|
@@ -201,6 +253,11 @@ export declare const sViewConfig: z.ZodObject<{
|
|
|
201
253
|
area: string;
|
|
202
254
|
deviceIds: string[];
|
|
203
255
|
timeIntervalMs: number;
|
|
256
|
+
} | {
|
|
257
|
+
type: "playbackTrack";
|
|
258
|
+
source: string;
|
|
259
|
+
area: string;
|
|
260
|
+
controllerId: string;
|
|
204
261
|
})[];
|
|
205
262
|
hotspotArea?: string | undefined;
|
|
206
263
|
}>;
|
|
@@ -262,6 +319,21 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
262
319
|
area: string;
|
|
263
320
|
deviceIds: string[];
|
|
264
321
|
timeIntervalMs: number;
|
|
322
|
+
}>, z.ZodObject<{
|
|
323
|
+
area: z.ZodString;
|
|
324
|
+
type: z.ZodLiteral<"playbackTrack">;
|
|
325
|
+
controllerId: z.ZodString;
|
|
326
|
+
source: z.ZodString;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
type: "playbackTrack";
|
|
329
|
+
source: string;
|
|
330
|
+
area: string;
|
|
331
|
+
controllerId: string;
|
|
332
|
+
}, {
|
|
333
|
+
type: "playbackTrack";
|
|
334
|
+
source: string;
|
|
335
|
+
area: string;
|
|
336
|
+
controllerId: string;
|
|
265
337
|
}>]>, "many">;
|
|
266
338
|
}, "strip", z.ZodTypeAny, {
|
|
267
339
|
columns: number;
|
|
@@ -283,6 +355,11 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
283
355
|
area: string;
|
|
284
356
|
deviceIds: string[];
|
|
285
357
|
timeIntervalMs: number;
|
|
358
|
+
} | {
|
|
359
|
+
type: "playbackTrack";
|
|
360
|
+
source: string;
|
|
361
|
+
area: string;
|
|
362
|
+
controllerId: string;
|
|
286
363
|
})[];
|
|
287
364
|
hotspotArea?: string | undefined;
|
|
288
365
|
}, {
|
|
@@ -305,6 +382,11 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
305
382
|
area: string;
|
|
306
383
|
deviceIds: string[];
|
|
307
384
|
timeIntervalMs: number;
|
|
385
|
+
} | {
|
|
386
|
+
type: "playbackTrack";
|
|
387
|
+
source: string;
|
|
388
|
+
area: string;
|
|
389
|
+
controllerId: string;
|
|
308
390
|
})[];
|
|
309
391
|
hotspotArea?: string | undefined;
|
|
310
392
|
}>;
|
|
@@ -330,6 +412,11 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
330
412
|
area: string;
|
|
331
413
|
deviceIds: string[];
|
|
332
414
|
timeIntervalMs: number;
|
|
415
|
+
} | {
|
|
416
|
+
type: "playbackTrack";
|
|
417
|
+
source: string;
|
|
418
|
+
area: string;
|
|
419
|
+
controllerId: string;
|
|
333
420
|
})[];
|
|
334
421
|
hotspotArea?: string | undefined;
|
|
335
422
|
};
|
|
@@ -358,6 +445,11 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
358
445
|
area: string;
|
|
359
446
|
deviceIds: string[];
|
|
360
447
|
timeIntervalMs: number;
|
|
448
|
+
} | {
|
|
449
|
+
type: "playbackTrack";
|
|
450
|
+
source: string;
|
|
451
|
+
area: string;
|
|
452
|
+
controllerId: string;
|
|
361
453
|
})[];
|
|
362
454
|
hotspotArea?: string | undefined;
|
|
363
455
|
};
|
|
@@ -423,6 +515,21 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
423
515
|
area: string;
|
|
424
516
|
deviceIds: string[];
|
|
425
517
|
timeIntervalMs: number;
|
|
518
|
+
}>, z.ZodObject<{
|
|
519
|
+
area: z.ZodString;
|
|
520
|
+
type: z.ZodLiteral<"playbackTrack">;
|
|
521
|
+
controllerId: z.ZodString;
|
|
522
|
+
source: z.ZodString;
|
|
523
|
+
}, "strip", z.ZodTypeAny, {
|
|
524
|
+
type: "playbackTrack";
|
|
525
|
+
source: string;
|
|
526
|
+
area: string;
|
|
527
|
+
controllerId: string;
|
|
528
|
+
}, {
|
|
529
|
+
type: "playbackTrack";
|
|
530
|
+
source: string;
|
|
531
|
+
area: string;
|
|
532
|
+
controllerId: string;
|
|
426
533
|
}>]>, "many">;
|
|
427
534
|
}, "strip", z.ZodTypeAny, {
|
|
428
535
|
columns: number;
|
|
@@ -444,6 +551,11 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
444
551
|
area: string;
|
|
445
552
|
deviceIds: string[];
|
|
446
553
|
timeIntervalMs: number;
|
|
554
|
+
} | {
|
|
555
|
+
type: "playbackTrack";
|
|
556
|
+
source: string;
|
|
557
|
+
area: string;
|
|
558
|
+
controllerId: string;
|
|
447
559
|
})[];
|
|
448
560
|
hotspotArea?: string | undefined;
|
|
449
561
|
}, {
|
|
@@ -466,6 +578,11 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
466
578
|
area: string;
|
|
467
579
|
deviceIds: string[];
|
|
468
580
|
timeIntervalMs: number;
|
|
581
|
+
} | {
|
|
582
|
+
type: "playbackTrack";
|
|
583
|
+
source: string;
|
|
584
|
+
area: string;
|
|
585
|
+
controllerId: string;
|
|
469
586
|
})[];
|
|
470
587
|
hotspotArea?: string | undefined;
|
|
471
588
|
}>>;
|
|
@@ -493,6 +610,11 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
493
610
|
area: string;
|
|
494
611
|
deviceIds: string[];
|
|
495
612
|
timeIntervalMs: number;
|
|
613
|
+
} | {
|
|
614
|
+
type: "playbackTrack";
|
|
615
|
+
source: string;
|
|
616
|
+
area: string;
|
|
617
|
+
controllerId: string;
|
|
496
618
|
})[];
|
|
497
619
|
hotspotArea?: string | undefined;
|
|
498
620
|
} | undefined;
|
|
@@ -521,6 +643,11 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
521
643
|
area: string;
|
|
522
644
|
deviceIds: string[];
|
|
523
645
|
timeIntervalMs: number;
|
|
646
|
+
} | {
|
|
647
|
+
type: "playbackTrack";
|
|
648
|
+
source: string;
|
|
649
|
+
area: string;
|
|
650
|
+
controllerId: string;
|
|
524
651
|
})[];
|
|
525
652
|
hotspotArea?: string | undefined;
|
|
526
653
|
} | undefined;
|
|
@@ -595,6 +722,21 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
|
|
|
595
722
|
area: string;
|
|
596
723
|
deviceIds: string[];
|
|
597
724
|
timeIntervalMs: number;
|
|
725
|
+
}>, z.ZodObject<{
|
|
726
|
+
area: z.ZodString;
|
|
727
|
+
type: z.ZodLiteral<"playbackTrack">;
|
|
728
|
+
controllerId: z.ZodString;
|
|
729
|
+
source: z.ZodString;
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
731
|
+
type: "playbackTrack";
|
|
732
|
+
source: string;
|
|
733
|
+
area: string;
|
|
734
|
+
controllerId: string;
|
|
735
|
+
}, {
|
|
736
|
+
type: "playbackTrack";
|
|
737
|
+
source: string;
|
|
738
|
+
area: string;
|
|
739
|
+
controllerId: string;
|
|
598
740
|
}>]>, "many">;
|
|
599
741
|
}, "strip", z.ZodTypeAny, {
|
|
600
742
|
columns: number;
|
|
@@ -616,6 +758,11 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
|
|
|
616
758
|
area: string;
|
|
617
759
|
deviceIds: string[];
|
|
618
760
|
timeIntervalMs: number;
|
|
761
|
+
} | {
|
|
762
|
+
type: "playbackTrack";
|
|
763
|
+
source: string;
|
|
764
|
+
area: string;
|
|
765
|
+
controllerId: string;
|
|
619
766
|
})[];
|
|
620
767
|
hotspotArea?: string | undefined;
|
|
621
768
|
}, {
|
|
@@ -638,6 +785,11 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
|
|
|
638
785
|
area: string;
|
|
639
786
|
deviceIds: string[];
|
|
640
787
|
timeIntervalMs: number;
|
|
788
|
+
} | {
|
|
789
|
+
type: "playbackTrack";
|
|
790
|
+
source: string;
|
|
791
|
+
area: string;
|
|
792
|
+
controllerId: string;
|
|
641
793
|
})[];
|
|
642
794
|
hotspotArea?: string | undefined;
|
|
643
795
|
}>>;
|
|
@@ -722,6 +874,21 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
|
|
|
722
874
|
area: string;
|
|
723
875
|
deviceIds: string[];
|
|
724
876
|
timeIntervalMs: number;
|
|
877
|
+
}>, z.ZodObject<{
|
|
878
|
+
area: z.ZodString;
|
|
879
|
+
type: z.ZodLiteral<"playbackTrack">;
|
|
880
|
+
controllerId: z.ZodString;
|
|
881
|
+
source: z.ZodString;
|
|
882
|
+
}, "strip", z.ZodTypeAny, {
|
|
883
|
+
type: "playbackTrack";
|
|
884
|
+
source: string;
|
|
885
|
+
area: string;
|
|
886
|
+
controllerId: string;
|
|
887
|
+
}, {
|
|
888
|
+
type: "playbackTrack";
|
|
889
|
+
source: string;
|
|
890
|
+
area: string;
|
|
891
|
+
controllerId: string;
|
|
725
892
|
}>]>, "many">;
|
|
726
893
|
}, "strip", z.ZodTypeAny, {
|
|
727
894
|
columns: number;
|
|
@@ -743,6 +910,11 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
|
|
|
743
910
|
area: string;
|
|
744
911
|
deviceIds: string[];
|
|
745
912
|
timeIntervalMs: number;
|
|
913
|
+
} | {
|
|
914
|
+
type: "playbackTrack";
|
|
915
|
+
source: string;
|
|
916
|
+
area: string;
|
|
917
|
+
controllerId: string;
|
|
746
918
|
})[];
|
|
747
919
|
hotspotArea?: string | undefined;
|
|
748
920
|
}, {
|
|
@@ -765,6 +937,11 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
|
|
|
765
937
|
area: string;
|
|
766
938
|
deviceIds: string[];
|
|
767
939
|
timeIntervalMs: number;
|
|
940
|
+
} | {
|
|
941
|
+
type: "playbackTrack";
|
|
942
|
+
source: string;
|
|
943
|
+
area: string;
|
|
944
|
+
controllerId: string;
|
|
768
945
|
})[];
|
|
769
946
|
hotspotArea?: string | undefined;
|
|
770
947
|
}>>;
|
package/dist/view.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.sViewDto = exports.sViewInfo = exports.sUpdateViewRequest = exports.sAddViewRequest = exports.sViewConfig = exports.sViewAreaContents = exports.sDeviceCarouselArea = exports.sDeviceArea = exports.sLayoutSelectorArea = exports.sLayoutArea = void 0;
|
|
6
|
+
exports.sViewDto = exports.sViewInfo = exports.sUpdateViewRequest = exports.sAddViewRequest = exports.sViewConfig = exports.sViewAreaContents = exports.sPlaybackTrackArea = exports.sDeviceCarouselArea = exports.sDeviceArea = exports.sLayoutSelectorArea = exports.sLayoutArea = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.sLayoutArea = zod_1.default.object({
|
|
9
9
|
area: zod_1.default.string().nonempty(),
|
|
@@ -25,11 +25,21 @@ exports.sDeviceCarouselArea = zod_1.default.object({
|
|
|
25
25
|
deviceIds: zod_1.default.array(zod_1.default.string().nonempty()),
|
|
26
26
|
timeIntervalMs: zod_1.default.number().nonnegative(),
|
|
27
27
|
});
|
|
28
|
+
exports.sPlaybackTrackArea = zod_1.default.object({
|
|
29
|
+
area: zod_1.default.string().nonempty(),
|
|
30
|
+
type: zod_1.default.literal('playbackTrack'),
|
|
31
|
+
controllerId: zod_1.default.string().nonempty(),
|
|
32
|
+
source: zod_1.default
|
|
33
|
+
.string()
|
|
34
|
+
.nonempty()
|
|
35
|
+
.describe('The track within the controller. It is the device ID for the camera in the track.'),
|
|
36
|
+
});
|
|
28
37
|
exports.sViewAreaContents = zod_1.default.union([
|
|
29
38
|
exports.sLayoutArea,
|
|
30
39
|
exports.sLayoutSelectorArea,
|
|
31
40
|
exports.sDeviceArea,
|
|
32
41
|
exports.sDeviceCarouselArea,
|
|
42
|
+
exports.sPlaybackTrackArea,
|
|
33
43
|
]);
|
|
34
44
|
exports.sViewConfig = zod_1.default.object({
|
|
35
45
|
rows: zod_1.default.number(),
|