camstreamerlib 4.0.0-beta.30 → 4.0.0-beta.32

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.
Files changed (91) hide show
  1. package/cjs/CamOverlayAPI.d.ts +4 -15
  2. package/cjs/CamOverlayAPI.js +10 -21
  3. package/cjs/CamScripterAPI.d.ts +3 -2
  4. package/cjs/CamScripterAPI.js +5 -5
  5. package/cjs/CamStreamerAPI.d.ts +3 -2
  6. package/cjs/CamStreamerAPI.js +4 -4
  7. package/cjs/CamSwitcherAPI.d.ts +3 -2
  8. package/cjs/CamSwitcherAPI.js +7 -7
  9. package/cjs/PlaneTrackerAPI.d.ts +3 -2
  10. package/cjs/PlaneTrackerAPI.js +15 -15
  11. package/cjs/VapixAPI.d.ts +3 -2
  12. package/cjs/VapixAPI.js +13 -13
  13. package/cjs/events/AxisCameraStationEvents.d.ts +4 -2
  14. package/cjs/events/AxisCameraStationEvents.js +4 -4
  15. package/cjs/index.d.ts +0 -1
  16. package/cjs/index.js +0 -1
  17. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +708 -521
  18. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +35 -82
  19. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +7 -37
  20. package/cjs/types/CamOverlayAPI/accuweatherSchema.js +8 -11
  21. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +63 -146
  22. package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +6 -9
  23. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +8 -35
  24. package/cjs/types/CamOverlayAPI/imagesSchema.js +5 -8
  25. package/cjs/types/CamOverlayAPI/index.d.ts +2 -0
  26. package/cjs/types/CamOverlayAPI/index.js +2 -0
  27. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +9 -43
  28. package/cjs/types/CamOverlayAPI/infotickerSchema.js +7 -10
  29. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +5 -46
  30. package/cjs/types/CamOverlayAPI/pipSchema.js +5 -8
  31. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +7 -40
  32. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +5 -8
  33. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +10 -38
  34. package/cjs/types/CamOverlayAPI/ptzSchema.js +5 -8
  35. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +3 -24
  36. package/cjs/types/CamOverlayAPI/screenSharingSchema.js +4 -7
  37. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +3 -24
  38. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +4 -7
  39. package/cjs/types/CamOverlayAPI/widgetCommonTypes.d.ts +141 -0
  40. package/cjs/types/CamOverlayAPI/widgetCommonTypes.js +87 -0
  41. package/cjs/types/CamStreamerAPI.d.ts +4 -4
  42. package/cjs/types/CamSwitcherAPI.d.ts +0 -2
  43. package/cjs/types/VapixAPI.d.ts +0 -2
  44. package/esm/CamOverlayAPI.d.ts +4 -15
  45. package/esm/CamOverlayAPI.js +9 -20
  46. package/esm/CamScripterAPI.d.ts +3 -2
  47. package/esm/CamScripterAPI.js +5 -5
  48. package/esm/CamStreamerAPI.d.ts +3 -2
  49. package/esm/CamStreamerAPI.js +4 -4
  50. package/esm/CamSwitcherAPI.d.ts +3 -2
  51. package/esm/CamSwitcherAPI.js +7 -7
  52. package/esm/PlaneTrackerAPI.d.ts +3 -2
  53. package/esm/PlaneTrackerAPI.js +15 -15
  54. package/esm/VapixAPI.d.ts +3 -2
  55. package/esm/VapixAPI.js +13 -13
  56. package/esm/events/AxisCameraStationEvents.d.ts +4 -2
  57. package/esm/events/AxisCameraStationEvents.js +4 -4
  58. package/esm/index.d.ts +0 -1
  59. package/esm/index.js +0 -1
  60. package/esm/types/CamOverlayAPI/CamOverlayAPI.d.ts +708 -521
  61. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +17 -73
  62. package/esm/types/CamOverlayAPI/accuweatherSchema.d.ts +7 -37
  63. package/esm/types/CamOverlayAPI/accuweatherSchema.js +1 -3
  64. package/esm/types/CamOverlayAPI/customGraphicsSchema.d.ts +63 -146
  65. package/esm/types/CamOverlayAPI/customGraphicsSchema.js +1 -3
  66. package/esm/types/CamOverlayAPI/imagesSchema.d.ts +8 -35
  67. package/esm/types/CamOverlayAPI/imagesSchema.js +1 -3
  68. package/esm/types/CamOverlayAPI/index.d.ts +2 -0
  69. package/esm/types/CamOverlayAPI/index.js +2 -0
  70. package/esm/types/CamOverlayAPI/infotickerSchema.d.ts +9 -43
  71. package/esm/types/CamOverlayAPI/infotickerSchema.js +1 -3
  72. package/esm/types/CamOverlayAPI/pipSchema.d.ts +5 -46
  73. package/esm/types/CamOverlayAPI/pipSchema.js +1 -3
  74. package/esm/types/CamOverlayAPI/ptzCompassSchema.d.ts +7 -40
  75. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -3
  76. package/esm/types/CamOverlayAPI/ptzSchema.d.ts +10 -38
  77. package/esm/types/CamOverlayAPI/ptzSchema.js +1 -3
  78. package/esm/types/CamOverlayAPI/screenSharingSchema.d.ts +3 -24
  79. package/esm/types/CamOverlayAPI/screenSharingSchema.js +1 -3
  80. package/esm/types/CamOverlayAPI/webCameraSharingSchema.d.ts +3 -24
  81. package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +1 -3
  82. package/esm/types/CamOverlayAPI/widgetCommonTypes.d.ts +141 -0
  83. package/esm/types/CamOverlayAPI/widgetCommonTypes.js +84 -0
  84. package/esm/types/CamStreamerAPI.d.ts +4 -4
  85. package/esm/types/CamSwitcherAPI.d.ts +0 -2
  86. package/esm/types/VapixAPI.d.ts +0 -2
  87. package/package.json +2 -2
  88. package/cjs/node/WsEventClient.d.ts +0 -13
  89. package/cjs/node/WsEventClient.js +0 -22
  90. package/esm/node/WsEventClient.d.ts +0 -13
  91. package/esm/node/WsEventClient.js +0 -18
@@ -1,4 +1,3 @@
1
- import { TWidget } from './CamOverlayAPI';
2
1
  import { z } from 'zod';
3
2
  export declare const infoTickerSchema: z.ZodObject<{
4
3
  id: z.ZodNumber;
@@ -39,25 +38,25 @@ export declare const infoTickerSchema: z.ZodObject<{
39
38
  width: number;
40
39
  height: number;
41
40
  source: string;
42
- pos_y: number;
43
- textColor: string;
44
- font: string;
45
- fontSize: number;
46
- switchingTime: number;
47
41
  automationType: "time" | "manual" | "schedule" | `input${number}`;
48
42
  cameraList: number[];
49
43
  customName: string;
44
+ pos_y: number;
50
45
  coordSystem: "top" | "bottom";
51
46
  showClock: 0 | 1;
52
47
  clockType: "12h" | "24h";
48
+ textColor: string;
53
49
  bgColor: string;
54
50
  weatherLocation: string;
55
51
  weatherLocationName: string;
56
52
  weatherLang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
57
53
  weatherUnits: "Metric" | "Imperial";
58
54
  numberOfLines: number;
55
+ switchingTime: number;
59
56
  crawlLeft: boolean;
60
57
  crawlSpeed: number;
58
+ font: string;
59
+ fontSize: number;
61
60
  sourceType: "url" | "text";
62
61
  camera?: number | undefined;
63
62
  schedule?: string | undefined;
@@ -70,61 +69,28 @@ export declare const infoTickerSchema: z.ZodObject<{
70
69
  width: number;
71
70
  height: number;
72
71
  source: string;
73
- pos_y: number;
74
- textColor: string;
75
- font: string;
76
- fontSize: number;
77
- switchingTime: number;
78
72
  automationType: "time" | "manual" | "schedule" | `input${number}`;
79
73
  cameraList: number[];
80
74
  customName: string;
75
+ pos_y: number;
81
76
  coordSystem: "top" | "bottom";
82
77
  showClock: 0 | 1;
83
78
  clockType: "12h" | "24h";
79
+ textColor: string;
84
80
  bgColor: string;
85
81
  weatherLocation: string;
86
82
  weatherLocationName: string;
87
83
  weatherLang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
88
84
  weatherUnits: "Metric" | "Imperial";
89
85
  numberOfLines: number;
86
+ switchingTime: number;
90
87
  crawlLeft: boolean;
91
88
  crawlSpeed: number;
92
- sourceType: "url" | "text";
93
- camera?: number | undefined;
94
- schedule?: string | undefined;
95
- invertInput?: boolean | undefined;
96
- zIndex?: number | undefined;
97
- }>;
98
- export type TInfoticker = z.infer<typeof infoTickerSchema>;
99
- export declare const isInfoticker: (widget: TWidget) => widget is {
100
- name: "infoticker";
101
- enabled: 0 | 1;
102
- id: number;
103
- width: number;
104
- height: number;
105
- source: string;
106
- pos_y: number;
107
- textColor: string;
108
89
  font: string;
109
90
  fontSize: number;
110
- switchingTime: number;
111
- automationType: "time" | "manual" | "schedule" | `input${number}`;
112
- cameraList: number[];
113
- customName: string;
114
- coordSystem: "top" | "bottom";
115
- showClock: 0 | 1;
116
- clockType: "12h" | "24h";
117
- bgColor: string;
118
- weatherLocation: string;
119
- weatherLocationName: string;
120
- weatherLang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
121
- weatherUnits: "Metric" | "Imperial";
122
- numberOfLines: number;
123
- crawlLeft: boolean;
124
- crawlSpeed: number;
125
91
  sourceType: "url" | "text";
126
92
  camera?: number | undefined;
127
93
  schedule?: string | undefined;
128
94
  invertInput?: boolean | undefined;
129
95
  zIndex?: number | undefined;
130
- };
96
+ }>;
@@ -1,29 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInfoticker = exports.infoTickerSchema = void 0;
4
- const CamOverlayAPI_1 = require("./CamOverlayAPI");
5
- const CamOverlayAPI_2 = require("../../CamOverlayAPI");
3
+ exports.infoTickerSchema = void 0;
6
4
  const zod_1 = require("zod");
7
- exports.infoTickerSchema = CamOverlayAPI_1.widgetCommonSchema.extend({
8
- name: zod_1.z.literal(CamOverlayAPI_2.allowedWidgetNames.infoticker),
5
+ const widgetCommonTypes_1 = require("./widgetCommonTypes");
6
+ exports.infoTickerSchema = widgetCommonTypes_1.widgetCommonSchema.extend({
7
+ name: zod_1.z.literal(widgetCommonTypes_1.allowedWidgetNames.infoticker),
9
8
  showClock: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
10
9
  clockType: zod_1.z.union([zod_1.z.literal('12h'), zod_1.z.literal('24h')]),
11
10
  textColor: zod_1.z.string(),
12
11
  bgColor: zod_1.z.string(),
13
12
  weatherLocation: zod_1.z.string(),
14
13
  weatherLocationName: zod_1.z.string(),
15
- weatherLang: CamOverlayAPI_1.languageSchema,
16
- weatherUnits: CamOverlayAPI_1.weatherUnitSchema,
14
+ weatherLang: widgetCommonTypes_1.languageSchema,
15
+ weatherUnits: widgetCommonTypes_1.weatherUnitSchema,
17
16
  numberOfLines: zod_1.z.number().positive(),
18
17
  switchingTime: zod_1.z.number().nonnegative(),
19
18
  crawlLeft: zod_1.z.boolean(),
20
19
  crawlSpeed: zod_1.z.number(),
21
20
  coordSystem: zod_1.z.union([zod_1.z.literal('top'), zod_1.z.literal('bottom')]),
22
21
  pos_y: zod_1.z.number(),
23
- font: CamOverlayAPI_1.fontSchema,
22
+ font: widgetCommonTypes_1.fontSchema,
24
23
  fontSize: zod_1.z.number().nonnegative(),
25
24
  sourceType: zod_1.z.union([zod_1.z.literal('text'), zod_1.z.literal('url')]),
26
25
  source: zod_1.z.string(),
27
26
  });
28
- const isInfoticker = (widget) => widget.name === 'infoticker';
29
- exports.isInfoticker = isInfoticker;
@@ -1,4 +1,3 @@
1
- import { TWidget } from './CamOverlayAPI';
2
1
  import { z } from 'zod';
3
2
  export declare const pipSchema: z.ZodObject<{
4
3
  id: z.ZodNumber;
@@ -55,14 +54,14 @@ export declare const pipSchema: z.ZodObject<{
55
54
  width: number;
56
55
  height: number;
57
56
  fps: number;
58
- pos_x: number;
59
- pos_y: number;
60
57
  automationType: "time" | "manual" | "schedule" | `input${number}`;
61
58
  cameraList: number[];
62
59
  customName: string;
60
+ pos_x: number;
61
+ pos_y: number;
63
62
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
64
- scale: number;
65
63
  screenSize: number;
64
+ scale: number;
66
65
  source_type: "axis_camera" | "mjpeg_url";
67
66
  mjpeg_url: string;
68
67
  camera_ip: string;
@@ -93,54 +92,14 @@ export declare const pipSchema: z.ZodObject<{
93
92
  width: number;
94
93
  height: number;
95
94
  fps: number;
96
- pos_x: number;
97
- pos_y: number;
98
95
  automationType: "time" | "manual" | "schedule" | `input${number}`;
99
96
  cameraList: number[];
100
97
  customName: string;
101
- coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
102
- scale: number;
103
- screenSize: number;
104
- source_type: "axis_camera" | "mjpeg_url";
105
- mjpeg_url: string;
106
- camera_ip: string;
107
- camera_port: number;
108
- camera_user: string;
109
- camera_pass: string;
110
- camera_width: number;
111
- camera_height: number;
112
- camera_view_area: string;
113
- camera_overlay_params: "overlays=off" | "overlays=all" | "overlays=text" | "overlays=image" | "overlays=application";
114
- rotate: 0 | 90 | 180 | 270;
115
- dewarping: {
116
- enabled: boolean;
117
- rectangle: [number, number][];
118
- aspectRatioCorrection: number;
119
- };
120
- borderColor: string;
121
- borderWidth: number;
122
- camera?: number | undefined;
123
- schedule?: string | undefined;
124
- invertInput?: boolean | undefined;
125
- zIndex?: number | undefined;
126
- }>;
127
- export type TPip = z.infer<typeof pipSchema>;
128
- export declare const isPip: (widget: TWidget) => widget is {
129
- name: "pip";
130
- compression: number;
131
- enabled: 0 | 1;
132
- id: number;
133
- width: number;
134
- height: number;
135
- fps: number;
136
98
  pos_x: number;
137
99
  pos_y: number;
138
- automationType: "time" | "manual" | "schedule" | `input${number}`;
139
- cameraList: number[];
140
- customName: string;
141
100
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
142
- scale: number;
143
101
  screenSize: number;
102
+ scale: number;
144
103
  source_type: "axis_camera" | "mjpeg_url";
145
104
  mjpeg_url: string;
146
105
  camera_ip: string;
@@ -163,4 +122,4 @@ export declare const isPip: (widget: TWidget) => widget is {
163
122
  schedule?: string | undefined;
164
123
  invertInput?: boolean | undefined;
165
124
  zIndex?: number | undefined;
166
- };
125
+ }>;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPip = exports.pipSchema = void 0;
4
- const CamOverlayAPI_1 = require("./CamOverlayAPI");
5
- const CamOverlayAPI_2 = require("../../CamOverlayAPI");
3
+ exports.pipSchema = void 0;
6
4
  const zod_1 = require("zod");
7
- exports.pipSchema = CamOverlayAPI_1.widgetCommonSchema.extend({
8
- name: zod_1.z.literal(CamOverlayAPI_2.allowedWidgetNames.pip),
9
- coordSystem: CamOverlayAPI_1.coordinateSystemSchema,
5
+ const widgetCommonTypes_1 = require("./widgetCommonTypes");
6
+ exports.pipSchema = widgetCommonTypes_1.widgetCommonSchema.extend({
7
+ name: zod_1.z.literal(widgetCommonTypes_1.allowedWidgetNames.pip),
8
+ coordSystem: widgetCommonTypes_1.coordinateSystemSchema,
10
9
  pos_x: zod_1.z.number(),
11
10
  pos_y: zod_1.z.number(),
12
11
  fps: zod_1.z.number(),
@@ -38,5 +37,3 @@ exports.pipSchema = CamOverlayAPI_1.widgetCommonSchema.extend({
38
37
  borderWidth: zod_1.z.number(),
39
38
  scale: zod_1.z.number(),
40
39
  });
41
- const isPip = (widget) => widget.name === 'pip';
42
- exports.isPip = isPip;
@@ -1,4 +1,3 @@
1
- import { TWidget } from './CamOverlayAPI';
2
1
  import { z } from 'zod';
3
2
  export declare const ptzCompassSchema: z.ZodObject<{
4
3
  id: z.ZodNumber;
@@ -32,20 +31,20 @@ export declare const ptzCompassSchema: z.ZodObject<{
32
31
  generalIframeHeight: z.ZodOptional<z.ZodNumber>;
33
32
  generalAddress: z.ZodOptional<z.ZodString>;
34
33
  }, "strip", z.ZodTypeAny, {
35
- type: "map" | "image" | "compass";
34
+ type: "map" | "compass" | "image";
36
35
  name: "ptzCompass";
37
36
  enabled: 0 | 1;
38
37
  id: number;
39
38
  width: number;
40
39
  height: number;
41
- pos_x: number;
42
- pos_y: number;
43
40
  automationType: "time" | "manual" | "schedule" | `input${number}`;
44
41
  cameraList: number[];
45
42
  customName: string;
43
+ pos_x: number;
44
+ pos_y: number;
46
45
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
47
- image: string;
48
46
  scale: number;
47
+ image: string;
49
48
  northPan: number;
50
49
  cameraPosX: number;
51
50
  cameraPosY: number;
@@ -62,52 +61,20 @@ export declare const ptzCompassSchema: z.ZodObject<{
62
61
  generalIframeHeight?: number | undefined;
63
62
  generalAddress?: string | undefined;
64
63
  }, {
65
- type: "map" | "image" | "compass";
64
+ type: "map" | "compass" | "image";
66
65
  name: "ptzCompass";
67
66
  enabled: 0 | 1;
68
67
  id: number;
69
68
  width: number;
70
69
  height: number;
71
- pos_x: number;
72
- pos_y: number;
73
70
  automationType: "time" | "manual" | "schedule" | `input${number}`;
74
71
  cameraList: number[];
75
72
  customName: string;
76
- coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
77
- image: string;
78
- scale: number;
79
- northPan: number;
80
- cameraPosX: number;
81
- cameraPosY: number;
82
- colorScheme: "black" | "white" | "orange";
83
- camera?: number | undefined;
84
- schedule?: string | undefined;
85
- invertInput?: boolean | undefined;
86
- zIndex?: number | undefined;
87
- generalLng?: number | undefined;
88
- generalLat?: number | undefined;
89
- generalZoom?: number | undefined;
90
- generalMapType?: string | undefined;
91
- generalIframeWidth?: number | undefined;
92
- generalIframeHeight?: number | undefined;
93
- generalAddress?: string | undefined;
94
- }>;
95
- export type TPtzCompass = z.infer<typeof ptzCompassSchema>;
96
- export declare const isPtzCompass: (widget: TWidget) => widget is {
97
- type: "map" | "image" | "compass";
98
- name: "ptzCompass";
99
- enabled: 0 | 1;
100
- id: number;
101
- width: number;
102
- height: number;
103
73
  pos_x: number;
104
74
  pos_y: number;
105
- automationType: "time" | "manual" | "schedule" | `input${number}`;
106
- cameraList: number[];
107
- customName: string;
108
75
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
109
- image: string;
110
76
  scale: number;
77
+ image: string;
111
78
  northPan: number;
112
79
  cameraPosX: number;
113
80
  cameraPosY: number;
@@ -123,4 +90,4 @@ export declare const isPtzCompass: (widget: TWidget) => widget is {
123
90
  generalIframeWidth?: number | undefined;
124
91
  generalIframeHeight?: number | undefined;
125
92
  generalAddress?: string | undefined;
126
- };
93
+ }>;
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPtzCompass = exports.ptzCompassSchema = void 0;
4
- const CamOverlayAPI_1 = require("./CamOverlayAPI");
5
- const CamOverlayAPI_2 = require("../../CamOverlayAPI");
3
+ exports.ptzCompassSchema = void 0;
6
4
  const zod_1 = require("zod");
7
- exports.ptzCompassSchema = CamOverlayAPI_1.widgetCommonSchema.extend({
8
- name: zod_1.z.literal(CamOverlayAPI_2.allowedWidgetNames.ptzCompass),
5
+ const widgetCommonTypes_1 = require("./widgetCommonTypes");
6
+ exports.ptzCompassSchema = widgetCommonTypes_1.widgetCommonSchema.extend({
7
+ name: zod_1.z.literal(widgetCommonTypes_1.allowedWidgetNames.ptzCompass),
9
8
  pos_x: zod_1.z.number(),
10
9
  pos_y: zod_1.z.number(),
11
- coordSystem: CamOverlayAPI_1.coordinateSystemSchema,
10
+ coordSystem: widgetCommonTypes_1.coordinateSystemSchema,
12
11
  scale: zod_1.z.number().nonnegative(),
13
12
  type: zod_1.z.union([zod_1.z.literal('compass'), zod_1.z.literal('map'), zod_1.z.literal('image')]),
14
13
  image: zod_1.z.union([zod_1.z.string().url(), zod_1.z.literal('')]),
@@ -24,5 +23,3 @@ exports.ptzCompassSchema = CamOverlayAPI_1.widgetCommonSchema.extend({
24
23
  generalIframeHeight: zod_1.z.number().optional(),
25
24
  generalAddress: zod_1.z.string().optional(),
26
25
  });
27
- const isPtzCompass = (widget) => widget.name === 'ptzCompass';
28
- exports.isPtzCompass = isPtzCompass;
@@ -1,4 +1,3 @@
1
- import { TWidget } from './CamOverlayAPI';
2
1
  import { z } from 'zod';
3
2
  export declare const ptzSchema: z.ZodObject<{
4
3
  id: z.ZodNumber;
@@ -30,41 +29,41 @@ export declare const ptzSchema: z.ZodObject<{
30
29
  pos_x: number;
31
30
  pos_y: number;
32
31
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
33
- scale: number;
34
32
  imgPath: string;
35
33
  imgName: string;
34
+ scale: number;
36
35
  }, {
37
36
  duration: number;
38
37
  pos_x: number;
39
38
  pos_y: number;
40
39
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
41
- scale: number;
42
40
  imgPath: string;
43
41
  imgName: string;
42
+ scale: number;
44
43
  }>, "many">;
45
44
  loop: z.ZodBoolean;
46
45
  }, "strip", z.ZodTypeAny, {
47
- loop: boolean;
48
46
  overlayList: {
49
47
  duration: number;
50
48
  pos_x: number;
51
49
  pos_y: number;
52
50
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
53
- scale: number;
54
51
  imgPath: string;
55
52
  imgName: string;
53
+ scale: number;
56
54
  }[];
57
- }, {
58
55
  loop: boolean;
56
+ }, {
59
57
  overlayList: {
60
58
  duration: number;
61
59
  pos_x: number;
62
60
  pos_y: number;
63
61
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
64
- scale: number;
65
62
  imgPath: string;
66
63
  imgName: string;
64
+ scale: number;
67
65
  }[];
66
+ loop: boolean;
68
67
  }>>;
69
68
  }, "strip", z.ZodTypeAny, {
70
69
  name: "ptz";
@@ -76,16 +75,16 @@ export declare const ptzSchema: z.ZodObject<{
76
75
  cameraList: number[];
77
76
  customName: string;
78
77
  ptz_positions: Record<string, {
79
- loop: boolean;
80
78
  overlayList: {
81
79
  duration: number;
82
80
  pos_x: number;
83
81
  pos_y: number;
84
82
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
85
- scale: number;
86
83
  imgPath: string;
87
84
  imgName: string;
85
+ scale: number;
88
86
  }[];
87
+ loop: boolean;
89
88
  }>;
90
89
  camera?: number | undefined;
91
90
  schedule?: string | undefined;
@@ -101,46 +100,19 @@ export declare const ptzSchema: z.ZodObject<{
101
100
  cameraList: number[];
102
101
  customName: string;
103
102
  ptz_positions: Record<string, {
104
- loop: boolean;
105
103
  overlayList: {
106
104
  duration: number;
107
105
  pos_x: number;
108
106
  pos_y: number;
109
107
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
110
- scale: number;
111
108
  imgPath: string;
112
109
  imgName: string;
113
- }[];
114
- }>;
115
- camera?: number | undefined;
116
- schedule?: string | undefined;
117
- invertInput?: boolean | undefined;
118
- zIndex?: number | undefined;
119
- }>;
120
- export type TPtz = z.infer<typeof ptzSchema>;
121
- export declare const isPtz: (widget: TWidget) => widget is {
122
- name: "ptz";
123
- enabled: 0 | 1;
124
- id: number;
125
- width: number;
126
- height: number;
127
- automationType: "time" | "manual" | "schedule" | `input${number}`;
128
- cameraList: number[];
129
- customName: string;
130
- ptz_positions: Record<string, {
131
- loop: boolean;
132
- overlayList: {
133
- duration: number;
134
- pos_x: number;
135
- pos_y: number;
136
- coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
137
110
  scale: number;
138
- imgPath: string;
139
- imgName: string;
140
111
  }[];
112
+ loop: boolean;
141
113
  }>;
142
114
  camera?: number | undefined;
143
115
  schedule?: string | undefined;
144
116
  invertInput?: boolean | undefined;
145
117
  zIndex?: number | undefined;
146
- };
118
+ }>;
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPtz = exports.ptzSchema = void 0;
4
- const CamOverlayAPI_1 = require("./CamOverlayAPI");
5
- const CamOverlayAPI_2 = require("../../CamOverlayAPI");
3
+ exports.ptzSchema = void 0;
6
4
  const zod_1 = require("zod");
7
- exports.ptzSchema = CamOverlayAPI_1.widgetCommonSchema.extend({
8
- name: zod_1.z.literal(CamOverlayAPI_2.allowedWidgetNames.ptz),
5
+ const widgetCommonTypes_1 = require("./widgetCommonTypes");
6
+ exports.ptzSchema = widgetCommonTypes_1.widgetCommonSchema.extend({
7
+ name: zod_1.z.literal(widgetCommonTypes_1.allowedWidgetNames.ptz),
9
8
  ptz_positions: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
10
- overlayList: zod_1.z.array(CamOverlayAPI_1.overlaySchema.omit({ active: true, fps: true })),
9
+ overlayList: zod_1.z.array(widgetCommonTypes_1.overlaySchema.omit({ active: true, fps: true })),
11
10
  loop: zod_1.z.boolean(),
12
11
  })),
13
12
  });
14
- const isPtz = (widget) => widget.name === 'ptz';
15
- exports.isPtz = isPtz;
@@ -1,4 +1,3 @@
1
- import { TWidget } from './CamOverlayAPI';
2
1
  import { z } from 'zod';
3
2
  export declare const screenSharingSchema: z.ZodObject<{
4
3
  id: z.ZodNumber;
@@ -27,11 +26,11 @@ export declare const screenSharingSchema: z.ZodObject<{
27
26
  width: number;
28
27
  height: number;
29
28
  fps: number;
30
- pos_x: number;
31
- pos_y: number;
32
29
  automationType: "time" | "manual" | "schedule" | `input${number}`;
33
30
  cameraList: number[];
34
31
  customName: string;
32
+ pos_x: number;
33
+ pos_y: number;
35
34
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
36
35
  screenSize: number;
37
36
  camera?: number | undefined;
@@ -45,35 +44,15 @@ export declare const screenSharingSchema: z.ZodObject<{
45
44
  width: number;
46
45
  height: number;
47
46
  fps: number;
48
- pos_x: number;
49
- pos_y: number;
50
47
  automationType: "time" | "manual" | "schedule" | `input${number}`;
51
48
  cameraList: number[];
52
49
  customName: string;
53
- coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
54
- screenSize: number;
55
- camera?: number | undefined;
56
- schedule?: string | undefined;
57
- invertInput?: boolean | undefined;
58
- zIndex?: number | undefined;
59
- }>;
60
- export type TScreenSharing = z.infer<typeof screenSharingSchema>;
61
- export declare const isScreenSharing: (widget: TWidget) => widget is {
62
- name: "screenSharing";
63
- enabled: 0 | 1;
64
- id: number;
65
- width: number;
66
- height: number;
67
- fps: number;
68
50
  pos_x: number;
69
51
  pos_y: number;
70
- automationType: "time" | "manual" | "schedule" | `input${number}`;
71
- cameraList: number[];
72
- customName: string;
73
52
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
74
53
  screenSize: number;
75
54
  camera?: number | undefined;
76
55
  schedule?: string | undefined;
77
56
  invertInput?: boolean | undefined;
78
57
  zIndex?: number | undefined;
79
- };
58
+ }>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isScreenSharing = exports.screenSharingSchema = void 0;
4
- const CamOverlayAPI_1 = require("./CamOverlayAPI");
5
- const CamOverlayAPI_2 = require("../../CamOverlayAPI");
3
+ exports.screenSharingSchema = void 0;
6
4
  const zod_1 = require("zod");
7
- exports.screenSharingSchema = CamOverlayAPI_1.sharingSchema.extend({
8
- name: zod_1.z.literal(CamOverlayAPI_2.allowedWidgetNames.screenSharing),
5
+ const widgetCommonTypes_1 = require("./widgetCommonTypes");
6
+ exports.screenSharingSchema = widgetCommonTypes_1.sharingSchema.extend({
7
+ name: zod_1.z.literal(widgetCommonTypes_1.allowedWidgetNames.screenSharing),
9
8
  });
10
- const isScreenSharing = (widget) => widget.name === 'screenSharing';
11
- exports.isScreenSharing = isScreenSharing;
@@ -1,4 +1,3 @@
1
- import { TWidget } from './CamOverlayAPI';
2
1
  import { z } from 'zod';
3
2
  export declare const webCameraSharingSchema: z.ZodObject<{
4
3
  id: z.ZodNumber;
@@ -27,11 +26,11 @@ export declare const webCameraSharingSchema: z.ZodObject<{
27
26
  width: number;
28
27
  height: number;
29
28
  fps: number;
30
- pos_x: number;
31
- pos_y: number;
32
29
  automationType: "time" | "manual" | "schedule" | `input${number}`;
33
30
  cameraList: number[];
34
31
  customName: string;
32
+ pos_x: number;
33
+ pos_y: number;
35
34
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
36
35
  screenSize: number;
37
36
  camera?: number | undefined;
@@ -45,35 +44,15 @@ export declare const webCameraSharingSchema: z.ZodObject<{
45
44
  width: number;
46
45
  height: number;
47
46
  fps: number;
48
- pos_x: number;
49
- pos_y: number;
50
47
  automationType: "time" | "manual" | "schedule" | `input${number}`;
51
48
  cameraList: number[];
52
49
  customName: string;
53
- coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
54
- screenSize: number;
55
- camera?: number | undefined;
56
- schedule?: string | undefined;
57
- invertInput?: boolean | undefined;
58
- zIndex?: number | undefined;
59
- }>;
60
- export type TWebCameraSharing = z.infer<typeof webCameraSharingSchema>;
61
- export declare const isWebCameraSharing: (widget: TWidget) => widget is {
62
- name: "web_camera";
63
- enabled: 0 | 1;
64
- id: number;
65
- width: number;
66
- height: number;
67
- fps: number;
68
50
  pos_x: number;
69
51
  pos_y: number;
70
- automationType: "time" | "manual" | "schedule" | `input${number}`;
71
- cameraList: number[];
72
- customName: string;
73
52
  coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
74
53
  screenSize: number;
75
54
  camera?: number | undefined;
76
55
  schedule?: string | undefined;
77
56
  invertInput?: boolean | undefined;
78
57
  zIndex?: number | undefined;
79
- };
58
+ }>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isWebCameraSharing = exports.webCameraSharingSchema = void 0;
4
- const CamOverlayAPI_1 = require("./CamOverlayAPI");
5
- const CamOverlayAPI_2 = require("../../CamOverlayAPI");
3
+ exports.webCameraSharingSchema = void 0;
6
4
  const zod_1 = require("zod");
7
- exports.webCameraSharingSchema = CamOverlayAPI_1.sharingSchema.extend({
8
- name: zod_1.z.literal(CamOverlayAPI_2.allowedWidgetNames.web_camera),
5
+ const widgetCommonTypes_1 = require("./widgetCommonTypes");
6
+ exports.webCameraSharingSchema = widgetCommonTypes_1.sharingSchema.extend({
7
+ name: zod_1.z.literal(widgetCommonTypes_1.allowedWidgetNames.web_camera),
9
8
  });
10
- const isWebCameraSharing = (widget) => widget.name === 'web_camera';
11
- exports.isWebCameraSharing = isWebCameraSharing;