@cpzxrobot/sdk 1.0.66 → 1.0.67

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/camera_gateway.ts CHANGED
@@ -60,11 +60,12 @@ export class CameraGateway extends Object {
60
60
  | "up"
61
61
  | "down"
62
62
  | "zoom_in"
63
- | "zoom_out"
63
+ | "zoom_out",
64
+ start: boolean = true
64
65
  ): Promise<any> {
65
66
  var axios = await this.context.ready;
66
67
  const response = await axios.get(
67
- `/api/v1/camera/${data.id}/control/${action}`
68
+ `/api/v1/camera/${data.id}/control/${action}?start=${start}`
68
69
  );
69
70
  return response.data;
70
71
  }
@@ -32,9 +32,9 @@ class CameraGateway extends Object {
32
32
  const response = await axios.get(`/api/v1/weather?code=${id}`);
33
33
  return response.data;
34
34
  }
35
- async control(data, action) {
35
+ async control(data, action, start = true) {
36
36
  var axios = await this.context.ready;
37
- const response = await axios.get(`/api/v1/camera/${data.id}/control/${action}`);
37
+ const response = await axios.get(`/api/v1/camera/${data.id}/control/${action}?start=${start}`);
38
38
  return response.data;
39
39
  }
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {