camstreamerlib 4.0.0-beta.54 → 4.0.0-beta.55
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.
|
@@ -106,6 +106,7 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
106
106
|
trackingConfig: zod_1.z
|
|
107
107
|
.object({
|
|
108
108
|
prioritizeEmergency: zod_1.z.boolean(),
|
|
109
|
+
trackingZoneWeightIncrease: zod_1.z.number().int().nonnegative().default(0),
|
|
109
110
|
guardTourEnabled: zod_1.z.boolean().default(false),
|
|
110
111
|
guardTourId: zod_1.z.number().int().nonnegative().default(0),
|
|
111
112
|
})
|
|
@@ -302,6 +303,7 @@ exports.zonesSchema = zod_1.z.object({
|
|
|
302
303
|
maxAltitudeAmsl: zod_1.z.number().optional(),
|
|
303
304
|
minSpeedKmph: zod_1.z.number().optional(),
|
|
304
305
|
maxSpeedKmph: zod_1.z.number().optional(),
|
|
306
|
+
flightDirection: zod_1.z.enum(['all', 'arrival', 'departure']).default('all'),
|
|
305
307
|
weight: zod_1.z.number(),
|
|
306
308
|
}))
|
|
307
309
|
.default([]),
|
|
@@ -103,6 +103,7 @@ export const cameraSettingsSchema = z.object({
|
|
|
103
103
|
trackingConfig: z
|
|
104
104
|
.object({
|
|
105
105
|
prioritizeEmergency: z.boolean(),
|
|
106
|
+
trackingZoneWeightIncrease: z.number().int().nonnegative().default(0),
|
|
106
107
|
guardTourEnabled: z.boolean().default(false),
|
|
107
108
|
guardTourId: z.number().int().nonnegative().default(0),
|
|
108
109
|
})
|
|
@@ -299,6 +300,7 @@ export const zonesSchema = z.object({
|
|
|
299
300
|
maxAltitudeAmsl: z.number().optional(),
|
|
300
301
|
minSpeedKmph: z.number().optional(),
|
|
301
302
|
maxSpeedKmph: z.number().optional(),
|
|
303
|
+
flightDirection: z.enum(['all', 'arrival', 'departure']).default('all'),
|
|
302
304
|
weight: z.number(),
|
|
303
305
|
}))
|
|
304
306
|
.default([]),
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ProxyClient } from './internal/ProxyClient';
|
|
2
2
|
import { IClient, TResponse } from './internal/types';
|
|
3
|
-
import {
|
|
4
|
-
import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
3
|
+
import { THttpRequestOptions, TProxyParams, TStorageType } from './types/common';
|
|
5
4
|
export declare class CamScripterAPI<Client extends IClient<TResponse, any>> {
|
|
6
5
|
private client;
|
|
7
6
|
constructor(client: Client);
|
|
@@ -23,7 +22,7 @@ export declare class CamScripterAPI<Client extends IClient<TResponse, any>> {
|
|
|
23
22
|
capacity_mb: number;
|
|
24
23
|
}]>;
|
|
25
24
|
getPackageList(options?: THttpRequestOptions): Promise<{
|
|
26
|
-
storage: "
|
|
25
|
+
storage: "SD_CARD" | "INTERNAL";
|
|
27
26
|
manifest: {
|
|
28
27
|
package_name: string;
|
|
29
28
|
package_menu_name: string;
|
|
@@ -34,14 +33,14 @@ export declare class CamScripterAPI<Client extends IClient<TResponse, any>> {
|
|
|
34
33
|
required_camscripter_rbi_version?: string | undefined;
|
|
35
34
|
};
|
|
36
35
|
}[]>;
|
|
37
|
-
installPackages(formData: Parameters<Client['post']>[0]['data'], storage:
|
|
36
|
+
installPackages(formData: Parameters<Client['post']>[0]['data'], storage: TStorageType, options?: THttpRequestOptions): Promise<void>;
|
|
38
37
|
uninstallPackage(packageId: string, options?: THttpRequestOptions): Promise<void>;
|
|
39
38
|
importSettings(packageId: string, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
40
39
|
exportSettings(packageId: string, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
41
40
|
getNodejsStatus(options?: THttpRequestOptions): Promise<{
|
|
42
41
|
node_state: "OK" | "NOT_INSTALLED" | "NOT_FOUND";
|
|
43
42
|
}>;
|
|
44
|
-
installNodejs(storage:
|
|
43
|
+
installNodejs(storage: TStorageType, options?: THttpRequestOptions): Promise<void>;
|
|
45
44
|
private _getJson;
|
|
46
45
|
private _post;
|
|
47
46
|
}
|
|
@@ -58,6 +58,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
58
58
|
};
|
|
59
59
|
trackingConfig: {
|
|
60
60
|
prioritizeEmergency: boolean;
|
|
61
|
+
trackingZoneWeightIncrease: number;
|
|
61
62
|
guardTourEnabled: boolean;
|
|
62
63
|
guardTourId: number;
|
|
63
64
|
};
|
|
@@ -209,6 +210,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
209
210
|
lat: number;
|
|
210
211
|
lon: number;
|
|
211
212
|
}[]];
|
|
213
|
+
flightDirection: "all" | "arrival" | "departure";
|
|
212
214
|
weight: number;
|
|
213
215
|
name?: string | undefined;
|
|
214
216
|
minAltitudeAmsl?: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import { TStorageType } from './common';
|
|
3
3
|
export declare const nodeStateSchema: z.ZodObject<{
|
|
4
4
|
node_state: z.ZodUnion<[z.ZodLiteral<"OK">, z.ZodLiteral<"NOT_INSTALLED">, z.ZodLiteral<"NOT_FOUND">]>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -36,7 +36,7 @@ export declare const packageInfoListSchema: z.ZodArray<z.ZodObject<{
|
|
|
36
36
|
required_camscripter_rbi_version?: string | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
storage: "
|
|
39
|
+
storage: "SD_CARD" | "INTERNAL";
|
|
40
40
|
manifest: {
|
|
41
41
|
package_name: string;
|
|
42
42
|
package_menu_name: string;
|
|
@@ -47,7 +47,7 @@ export declare const packageInfoListSchema: z.ZodArray<z.ZodObject<{
|
|
|
47
47
|
required_camscripter_rbi_version?: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
}, {
|
|
50
|
-
storage: "
|
|
50
|
+
storage: "SD_CARD" | "INTERNAL";
|
|
51
51
|
manifest: {
|
|
52
52
|
package_name: string;
|
|
53
53
|
package_menu_name: string;
|
|
@@ -104,7 +104,7 @@ export declare const cameraStorageSchema: z.ZodUnion<[z.ZodTuple<[z.ZodObject<{
|
|
|
104
104
|
export type TCameraStorage = z.infer<typeof cameraStorageSchema>;
|
|
105
105
|
export type TStorageParsedData = {
|
|
106
106
|
size: number;
|
|
107
|
-
storageType:
|
|
107
|
+
storageType: TStorageType;
|
|
108
108
|
}[];
|
|
109
109
|
export declare const camscripterApiResponseSchema: z.ZodObject<{
|
|
110
110
|
status: z.ZodNumber;
|
|
@@ -157,14 +157,17 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
157
157
|
}>>;
|
|
158
158
|
trackingConfig: z.ZodDefault<z.ZodObject<{
|
|
159
159
|
prioritizeEmergency: z.ZodBoolean;
|
|
160
|
+
trackingZoneWeightIncrease: z.ZodDefault<z.ZodNumber>;
|
|
160
161
|
guardTourEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
161
162
|
guardTourId: z.ZodDefault<z.ZodNumber>;
|
|
162
163
|
}, "strip", z.ZodTypeAny, {
|
|
163
164
|
prioritizeEmergency: boolean;
|
|
165
|
+
trackingZoneWeightIncrease: number;
|
|
164
166
|
guardTourEnabled: boolean;
|
|
165
167
|
guardTourId: number;
|
|
166
168
|
}, {
|
|
167
169
|
prioritizeEmergency: boolean;
|
|
170
|
+
trackingZoneWeightIncrease?: number | undefined;
|
|
168
171
|
guardTourEnabled?: boolean | undefined;
|
|
169
172
|
guardTourId?: number | undefined;
|
|
170
173
|
}>>;
|
|
@@ -416,6 +419,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
416
419
|
};
|
|
417
420
|
trackingConfig: {
|
|
418
421
|
prioritizeEmergency: boolean;
|
|
422
|
+
trackingZoneWeightIncrease: number;
|
|
419
423
|
guardTourEnabled: boolean;
|
|
420
424
|
guardTourId: number;
|
|
421
425
|
};
|
|
@@ -533,6 +537,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
533
537
|
} | undefined;
|
|
534
538
|
trackingConfig?: {
|
|
535
539
|
prioritizeEmergency: boolean;
|
|
540
|
+
trackingZoneWeightIncrease?: number | undefined;
|
|
536
541
|
guardTourEnabled?: boolean | undefined;
|
|
537
542
|
guardTourId?: number | undefined;
|
|
538
543
|
} | undefined;
|
|
@@ -837,6 +842,7 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
837
842
|
maxAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
|
|
838
843
|
minSpeedKmph: z.ZodOptional<z.ZodNumber>;
|
|
839
844
|
maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
|
|
845
|
+
flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
|
|
840
846
|
weight: z.ZodNumber;
|
|
841
847
|
}, "strip", z.ZodTypeAny, {
|
|
842
848
|
enabled: boolean;
|
|
@@ -847,6 +853,7 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
847
853
|
lat: number;
|
|
848
854
|
lon: number;
|
|
849
855
|
}[]];
|
|
856
|
+
flightDirection: "all" | "arrival" | "departure";
|
|
850
857
|
weight: number;
|
|
851
858
|
name?: string | undefined;
|
|
852
859
|
minAltitudeAmsl?: number | undefined;
|
|
@@ -868,6 +875,7 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
868
875
|
maxAltitudeAmsl?: number | undefined;
|
|
869
876
|
minSpeedKmph?: number | undefined;
|
|
870
877
|
maxSpeedKmph?: number | undefined;
|
|
878
|
+
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
871
879
|
}>, "many">>;
|
|
872
880
|
}, "strip", z.ZodTypeAny, {
|
|
873
881
|
zones: {
|
|
@@ -879,6 +887,7 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
879
887
|
lat: number;
|
|
880
888
|
lon: number;
|
|
881
889
|
}[]];
|
|
890
|
+
flightDirection: "all" | "arrival" | "departure";
|
|
882
891
|
weight: number;
|
|
883
892
|
name?: string | undefined;
|
|
884
893
|
minAltitudeAmsl?: number | undefined;
|
|
@@ -902,6 +911,7 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
902
911
|
maxAltitudeAmsl?: number | undefined;
|
|
903
912
|
minSpeedKmph?: number | undefined;
|
|
904
913
|
maxSpeedKmph?: number | undefined;
|
|
914
|
+
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
905
915
|
}[] | undefined;
|
|
906
916
|
}>;
|
|
907
917
|
export type TZones = z.infer<typeof zonesSchema>;
|