camstreamerlib 4.0.0-beta.125 → 4.0.0-beta.126

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.
@@ -15,7 +15,6 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
15
15
  ws_initial_message: string;
16
16
  alias: string;
17
17
  }>;
18
- postJson: (path: string, data: string | Parameters<Client['post']>[0]['data'], parameters?: TParameters, options?: THttpRequestOptions) => Promise<TResponse>;
19
18
  resetPtzCalibration(options?: THttpRequestOptions): Promise<void>;
20
19
  resetFocusCalibration(options?: THttpRequestOptions): Promise<void>;
21
20
  fetchCameraSettings(options?: THttpRequestOptions): Promise<{
@@ -35,9 +35,6 @@ class PlaneTrackerAPI extends BasicAPI_1.BasicAPI {
35
35
  });
36
36
  return PlaneTrackerAPI_1.wsAliasResponseSchema.parse(await res.json());
37
37
  }
38
- postJson = (path, data, parameters, options) => {
39
- return this._postJsonEncoded(path, data, parameters, options);
40
- };
41
38
  async resetPtzCalibration(options) {
42
39
  const agent = this.getClient(options?.proxyParams);
43
40
  const res = await agent.get({
package/cjs/VapixAPI.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IClient, TResponse } from './internal/types';
1
+ import { IClient, TParameters, TResponse } from './internal/types';
2
2
  import { TAudioDevice, TPortSetSchema, TPortSequenceStateSchema } from './types/VapixAPI';
3
3
  import { TCameraImageConfig, THttpRequestOptions } from './types/common';
4
4
  import { BasicAPI } from './internal/BasicAPI';
@@ -8,6 +8,7 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> extends Ba
8
8
  new (form?: HTMLFormElement | undefined, submitter?: HTMLElement | null | undefined): FormData;
9
9
  prototype: FormData;
10
10
  });
11
+ postJson: (path: string, data: string | Parameters<Client['post']>[0]['data'], parameters?: TParameters, options?: THttpRequestOptions) => Promise<TResponse>;
11
12
  getCameraImage(parameters: TCameraImageConfig, options?: THttpRequestOptions): Promise<ReturnType<Client["get"]>>;
12
13
  getEventDeclarations(options?: THttpRequestOptions): Promise<string>;
13
14
  getSupportedAudioSampleRate(options?: THttpRequestOptions): Promise<{
package/cjs/VapixAPI.js CHANGED
@@ -13,6 +13,9 @@ class VapixAPI extends BasicAPI_1.BasicAPI {
13
13
  super(client);
14
14
  this.CustomFormData = CustomFormData;
15
15
  }
16
+ postJson = (path, data, parameters, options) => {
17
+ return this._postJsonEncoded(path, data, parameters, options);
18
+ };
16
19
  async getCameraImage(parameters, options) {
17
20
  const agent = this.getClient(options?.proxyParams);
18
21
  return (await agent.get({
@@ -32,9 +32,6 @@ export class PlaneTrackerAPI extends BasicAPI {
32
32
  });
33
33
  return wsAliasResponseSchema.parse(await res.json());
34
34
  }
35
- postJson = (path, data, parameters, options) => {
36
- return this._postJsonEncoded(path, data, parameters, options);
37
- };
38
35
  async resetPtzCalibration(options) {
39
36
  const agent = this.getClient(options?.proxyParams);
40
37
  const res = await agent.get({
package/esm/VapixAPI.js CHANGED
@@ -10,6 +10,9 @@ export class VapixAPI extends BasicAPI {
10
10
  super(client);
11
11
  this.CustomFormData = CustomFormData;
12
12
  }
13
+ postJson = (path, data, parameters, options) => {
14
+ return this._postJsonEncoded(path, data, parameters, options);
15
+ };
13
16
  async getCameraImage(parameters, options) {
14
17
  const agent = this.getClient(options?.proxyParams);
15
18
  return (await agent.get({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.125",
3
+ "version": "4.0.0-beta.126",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -15,7 +15,6 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
15
15
  ws_initial_message: string;
16
16
  alias: string;
17
17
  }>;
18
- postJson: (path: string, data: string | Parameters<Client['post']>[0]['data'], parameters?: TParameters, options?: THttpRequestOptions) => Promise<TResponse>;
19
18
  resetPtzCalibration(options?: THttpRequestOptions): Promise<void>;
20
19
  resetFocusCalibration(options?: THttpRequestOptions): Promise<void>;
21
20
  fetchCameraSettings(options?: THttpRequestOptions): Promise<{
@@ -1,4 +1,4 @@
1
- import { IClient, TResponse } from './internal/types';
1
+ import { IClient, TParameters, TResponse } from './internal/types';
2
2
  import { TAudioDevice, TPortSetSchema, TPortSequenceStateSchema } from './types/VapixAPI';
3
3
  import { TCameraImageConfig, THttpRequestOptions } from './types/common';
4
4
  import { BasicAPI } from './internal/BasicAPI';
@@ -8,6 +8,7 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> extends Ba
8
8
  new (form?: HTMLFormElement | undefined, submitter?: HTMLElement | null | undefined): FormData;
9
9
  prototype: FormData;
10
10
  });
11
+ postJson: (path: string, data: string | Parameters<Client['post']>[0]['data'], parameters?: TParameters, options?: THttpRequestOptions) => Promise<TResponse>;
11
12
  getCameraImage(parameters: TCameraImageConfig, options?: THttpRequestOptions): Promise<ReturnType<Client["get"]>>;
12
13
  getEventDeclarations(options?: THttpRequestOptions): Promise<string>;
13
14
  getSupportedAudioSampleRate(options?: THttpRequestOptions): Promise<{