camstreamerlib 4.0.21-3e06ab5 → 4.0.22-80666b5
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/cjs/PlaneTrackerAPI.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
18
18
|
}>;
|
|
19
19
|
resetPtzCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
20
20
|
resetFocusCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
21
|
+
triggerFocusReview(options?: THttpRequestOptions): Promise<void>;
|
|
21
22
|
fetchCameraSettings(options?: THttpRequestOptions): Promise<{
|
|
22
23
|
camera: {
|
|
23
24
|
ip: string;
|
package/cjs/PlaneTrackerAPI.js
CHANGED
|
@@ -60,6 +60,22 @@ class PlaneTrackerAPI extends BasicAPI_1.BasicAPI {
|
|
|
60
60
|
throw new errors_1.ResetCalibrationError('FOCUS', res);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
async triggerFocusReview(options) {
|
|
64
|
+
const agent = this.getClient(options?.proxyParams);
|
|
65
|
+
const res = await agent.get({
|
|
66
|
+
path: `${BASE_PATH}/package/triggerFocusReview.cgi`,
|
|
67
|
+
parameters: this.apiUser,
|
|
68
|
+
timeout: options?.timeout,
|
|
69
|
+
});
|
|
70
|
+
if (!res.ok) {
|
|
71
|
+
if (res.status === 400) {
|
|
72
|
+
throw new errors_1.BadRequestError(res);
|
|
73
|
+
}
|
|
74
|
+
if (res.status === 500) {
|
|
75
|
+
throw new errors_1.ServerError();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
63
79
|
async fetchCameraSettings(options) {
|
|
64
80
|
const res = await this._getJson(`${BASE_PATH}/package_camera_settings.cgi`, { action: 'get' }, options);
|
|
65
81
|
return PlaneTrackerAPI_1.cameraSettingsSchema.parse(res);
|
package/esm/PlaneTrackerAPI.js
CHANGED
|
@@ -57,6 +57,22 @@ export class PlaneTrackerAPI extends BasicAPI {
|
|
|
57
57
|
throw new ResetCalibrationError('FOCUS', res);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
async triggerFocusReview(options) {
|
|
61
|
+
const agent = this.getClient(options?.proxyParams);
|
|
62
|
+
const res = await agent.get({
|
|
63
|
+
path: `${BASE_PATH}/package/triggerFocusReview.cgi`,
|
|
64
|
+
parameters: this.apiUser,
|
|
65
|
+
timeout: options?.timeout,
|
|
66
|
+
});
|
|
67
|
+
if (!res.ok) {
|
|
68
|
+
if (res.status === 400) {
|
|
69
|
+
throw new BadRequestError(res);
|
|
70
|
+
}
|
|
71
|
+
if (res.status === 500) {
|
|
72
|
+
throw new ServerError();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
60
76
|
async fetchCameraSettings(options) {
|
|
61
77
|
const res = await this._getJson(`${BASE_PATH}/package_camera_settings.cgi`, { action: 'get' }, options);
|
|
62
78
|
return cameraSettingsSchema.parse(res);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camstreamerlib",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.22-80666b5",
|
|
4
4
|
"description": "Helper library for CamStreamer ACAP applications.",
|
|
5
5
|
"prettier": "@camstreamer/prettier-config",
|
|
6
6
|
"engine": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"eventemitter2": "^5.0.1",
|
|
12
12
|
"fast-xml-parser": "^5.3.6",
|
|
13
13
|
"type-fest": "^4.41.0",
|
|
14
|
-
"undici": "^6.
|
|
14
|
+
"undici": "^6.27.0",
|
|
15
15
|
"ws": "^8.18.0",
|
|
16
16
|
"zod": "^3.25.76"
|
|
17
17
|
},
|
|
@@ -18,6 +18,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
18
18
|
}>;
|
|
19
19
|
resetPtzCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
20
20
|
resetFocusCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
21
|
+
triggerFocusReview(options?: THttpRequestOptions): Promise<void>;
|
|
21
22
|
fetchCameraSettings(options?: THttpRequestOptions): Promise<{
|
|
22
23
|
camera: {
|
|
23
24
|
ip: string;
|