camstreamerlib 4.0.0-beta.73 → 4.0.0-beta.74
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/CamStreamerAPI.d.ts +0 -1
- package/cjs/CamStreamerAPI.js +0 -1
- package/cjs/PlaneTrackerAPI.d.ts +6 -0
- package/cjs/types/PlaneTrackerAPI.d.ts +28 -0
- package/cjs/types/PlaneTrackerAPI.js +13 -0
- package/esm/CamStreamerAPI.js +0 -1
- package/esm/types/PlaneTrackerAPI.js +13 -0
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +0 -1
- package/types/PlaneTrackerAPI.d.ts +6 -0
- package/types/types/PlaneTrackerAPI.d.ts +28 -0
package/cjs/CamStreamerAPI.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
|
5
5
|
export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
8
|
-
static getProxyPath: () => string;
|
|
9
8
|
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
10
9
|
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
11
10
|
getUtcTime(options?: THttpRequestOptions): Promise<number>;
|
package/cjs/CamStreamerAPI.js
CHANGED
|
@@ -11,7 +11,6 @@ class CamStreamerAPI {
|
|
|
11
11
|
constructor(client) {
|
|
12
12
|
this.client = client;
|
|
13
13
|
}
|
|
14
|
-
static getProxyPath = () => `${BASE_PATH}/proxy.cgi`;
|
|
15
14
|
getClient(proxyParams) {
|
|
16
15
|
return proxyParams ? new ProxyClient_1.ProxyClient(this.client, proxyParams) : this.client;
|
|
17
16
|
}
|
package/cjs/PlaneTrackerAPI.d.ts
CHANGED
|
@@ -115,6 +115,12 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
115
115
|
pass: string;
|
|
116
116
|
baseUri: string;
|
|
117
117
|
};
|
|
118
|
+
camstreamerIntegration: {
|
|
119
|
+
adPlacementEnabled: boolean;
|
|
120
|
+
adMinIntervalMs: number;
|
|
121
|
+
adShortDurationMs: number;
|
|
122
|
+
adLongDurationMs: number;
|
|
123
|
+
};
|
|
118
124
|
overlayText?: {
|
|
119
125
|
displayIcao?: boolean | undefined;
|
|
120
126
|
displayRegistration?: boolean | undefined;
|
|
@@ -379,6 +379,22 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
379
379
|
appId?: string | undefined;
|
|
380
380
|
baseUri?: string | undefined;
|
|
381
381
|
}>>;
|
|
382
|
+
camstreamerIntegration: z.ZodDefault<z.ZodObject<{
|
|
383
|
+
adPlacementEnabled: z.ZodBoolean;
|
|
384
|
+
adMinIntervalMs: z.ZodNumber;
|
|
385
|
+
adShortDurationMs: z.ZodNumber;
|
|
386
|
+
adLongDurationMs: z.ZodNumber;
|
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
|
+
adPlacementEnabled: boolean;
|
|
389
|
+
adMinIntervalMs: number;
|
|
390
|
+
adShortDurationMs: number;
|
|
391
|
+
adLongDurationMs: number;
|
|
392
|
+
}, {
|
|
393
|
+
adPlacementEnabled: boolean;
|
|
394
|
+
adMinIntervalMs: number;
|
|
395
|
+
adShortDurationMs: number;
|
|
396
|
+
adLongDurationMs: number;
|
|
397
|
+
}>>;
|
|
382
398
|
}, "strip", z.ZodTypeAny, {
|
|
383
399
|
camera: {
|
|
384
400
|
ip: string;
|
|
@@ -476,6 +492,12 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
476
492
|
pass: string;
|
|
477
493
|
baseUri: string;
|
|
478
494
|
};
|
|
495
|
+
camstreamerIntegration: {
|
|
496
|
+
adPlacementEnabled: boolean;
|
|
497
|
+
adMinIntervalMs: number;
|
|
498
|
+
adShortDurationMs: number;
|
|
499
|
+
adLongDurationMs: number;
|
|
500
|
+
};
|
|
479
501
|
overlayText?: {
|
|
480
502
|
displayIcao?: boolean | undefined;
|
|
481
503
|
displayRegistration?: boolean | undefined;
|
|
@@ -615,6 +637,12 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
615
637
|
appId?: string | undefined;
|
|
616
638
|
baseUri?: string | undefined;
|
|
617
639
|
} | undefined;
|
|
640
|
+
camstreamerIntegration?: {
|
|
641
|
+
adPlacementEnabled: boolean;
|
|
642
|
+
adMinIntervalMs: number;
|
|
643
|
+
adShortDurationMs: number;
|
|
644
|
+
adLongDurationMs: number;
|
|
645
|
+
} | undefined;
|
|
618
646
|
}>;
|
|
619
647
|
export type TCameraSettings = z.infer<typeof cameraSettingsSchema>;
|
|
620
648
|
export declare const serverSettingsSchema: z.ZodObject<{
|
|
@@ -213,6 +213,19 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
213
213
|
appId: '',
|
|
214
214
|
cameraList: [],
|
|
215
215
|
}),
|
|
216
|
+
camstreamerIntegration: zod_1.z
|
|
217
|
+
.object({
|
|
218
|
+
adPlacementEnabled: zod_1.z.boolean(),
|
|
219
|
+
adMinIntervalMs: zod_1.z.number().int().nonnegative(),
|
|
220
|
+
adShortDurationMs: zod_1.z.number().int().nonnegative(),
|
|
221
|
+
adLongDurationMs: zod_1.z.number().int().nonnegative(),
|
|
222
|
+
})
|
|
223
|
+
.default({
|
|
224
|
+
adPlacementEnabled: false,
|
|
225
|
+
adMinIntervalMs: 1800000,
|
|
226
|
+
adShortDurationMs: 10000,
|
|
227
|
+
adLongDurationMs: 30000,
|
|
228
|
+
}),
|
|
216
229
|
});
|
|
217
230
|
exports.serverSettingsSchema = zod_1.z.object({
|
|
218
231
|
cameraCalibration: zod_1.z
|
package/esm/CamStreamerAPI.js
CHANGED
|
@@ -210,6 +210,19 @@ export const cameraSettingsSchema = z.object({
|
|
|
210
210
|
appId: '',
|
|
211
211
|
cameraList: [],
|
|
212
212
|
}),
|
|
213
|
+
camstreamerIntegration: z
|
|
214
|
+
.object({
|
|
215
|
+
adPlacementEnabled: z.boolean(),
|
|
216
|
+
adMinIntervalMs: z.number().int().nonnegative(),
|
|
217
|
+
adShortDurationMs: z.number().int().nonnegative(),
|
|
218
|
+
adLongDurationMs: z.number().int().nonnegative(),
|
|
219
|
+
})
|
|
220
|
+
.default({
|
|
221
|
+
adPlacementEnabled: false,
|
|
222
|
+
adMinIntervalMs: 1800000,
|
|
223
|
+
adShortDurationMs: 10000,
|
|
224
|
+
adLongDurationMs: 30000,
|
|
225
|
+
}),
|
|
213
226
|
});
|
|
214
227
|
export const serverSettingsSchema = z.object({
|
|
215
228
|
cameraCalibration: z
|
package/package.json
CHANGED
|
@@ -5,7 +5,6 @@ import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
|
5
5
|
export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
8
|
-
static getProxyPath: () => string;
|
|
9
8
|
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
10
9
|
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
11
10
|
getUtcTime(options?: THttpRequestOptions): Promise<number>;
|
|
@@ -115,6 +115,12 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
115
115
|
pass: string;
|
|
116
116
|
baseUri: string;
|
|
117
117
|
};
|
|
118
|
+
camstreamerIntegration: {
|
|
119
|
+
adPlacementEnabled: boolean;
|
|
120
|
+
adMinIntervalMs: number;
|
|
121
|
+
adShortDurationMs: number;
|
|
122
|
+
adLongDurationMs: number;
|
|
123
|
+
};
|
|
118
124
|
overlayText?: {
|
|
119
125
|
displayIcao?: boolean | undefined;
|
|
120
126
|
displayRegistration?: boolean | undefined;
|
|
@@ -379,6 +379,22 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
379
379
|
appId?: string | undefined;
|
|
380
380
|
baseUri?: string | undefined;
|
|
381
381
|
}>>;
|
|
382
|
+
camstreamerIntegration: z.ZodDefault<z.ZodObject<{
|
|
383
|
+
adPlacementEnabled: z.ZodBoolean;
|
|
384
|
+
adMinIntervalMs: z.ZodNumber;
|
|
385
|
+
adShortDurationMs: z.ZodNumber;
|
|
386
|
+
adLongDurationMs: z.ZodNumber;
|
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
|
+
adPlacementEnabled: boolean;
|
|
389
|
+
adMinIntervalMs: number;
|
|
390
|
+
adShortDurationMs: number;
|
|
391
|
+
adLongDurationMs: number;
|
|
392
|
+
}, {
|
|
393
|
+
adPlacementEnabled: boolean;
|
|
394
|
+
adMinIntervalMs: number;
|
|
395
|
+
adShortDurationMs: number;
|
|
396
|
+
adLongDurationMs: number;
|
|
397
|
+
}>>;
|
|
382
398
|
}, "strip", z.ZodTypeAny, {
|
|
383
399
|
camera: {
|
|
384
400
|
ip: string;
|
|
@@ -476,6 +492,12 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
476
492
|
pass: string;
|
|
477
493
|
baseUri: string;
|
|
478
494
|
};
|
|
495
|
+
camstreamerIntegration: {
|
|
496
|
+
adPlacementEnabled: boolean;
|
|
497
|
+
adMinIntervalMs: number;
|
|
498
|
+
adShortDurationMs: number;
|
|
499
|
+
adLongDurationMs: number;
|
|
500
|
+
};
|
|
479
501
|
overlayText?: {
|
|
480
502
|
displayIcao?: boolean | undefined;
|
|
481
503
|
displayRegistration?: boolean | undefined;
|
|
@@ -615,6 +637,12 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
615
637
|
appId?: string | undefined;
|
|
616
638
|
baseUri?: string | undefined;
|
|
617
639
|
} | undefined;
|
|
640
|
+
camstreamerIntegration?: {
|
|
641
|
+
adPlacementEnabled: boolean;
|
|
642
|
+
adMinIntervalMs: number;
|
|
643
|
+
adShortDurationMs: number;
|
|
644
|
+
adLongDurationMs: number;
|
|
645
|
+
} | undefined;
|
|
618
646
|
}>;
|
|
619
647
|
export type TCameraSettings = z.infer<typeof cameraSettingsSchema>;
|
|
620
648
|
export declare const serverSettingsSchema: z.ZodObject<{
|