camstreamerlib 4.0.0-beta.42 → 4.0.0-beta.44
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.js
CHANGED
|
@@ -95,7 +95,7 @@ class PlaneTrackerAPI {
|
|
|
95
95
|
return PlaneTrackerAPI_1.trackingModeSchema.parse(res);
|
|
96
96
|
}
|
|
97
97
|
async setTrackingMode(mode, options) {
|
|
98
|
-
await this._postJsonEncoded(`${BASE_PATH}/package/setTrackingMode.cgi`, mode, this.apiUser, options);
|
|
98
|
+
await this._postJsonEncoded(`${BASE_PATH}/package/setTrackingMode.cgi`, { mode: mode }, this.apiUser, options);
|
|
99
99
|
}
|
|
100
100
|
async startTrackingPlane(icao, options) {
|
|
101
101
|
const agent = this.getClient(options?.proxyParams);
|
|
@@ -118,21 +118,21 @@ class PlaneTrackerAPI {
|
|
|
118
118
|
return PlaneTrackerAPI_1.priorityListSchema.parse(res);
|
|
119
119
|
}
|
|
120
120
|
async setPriorityList(priorityList, options) {
|
|
121
|
-
return await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList }, this.apiUser, options);
|
|
121
|
+
return await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList: priorityList }, this.apiUser, options);
|
|
122
122
|
}
|
|
123
123
|
async getWhiteList(options) {
|
|
124
124
|
const res = await this._getJson(`${BASE_PATH}/package/getWhiteList.cgi`, undefined, options);
|
|
125
125
|
return PlaneTrackerAPI_1.whiteListSchema.parse(res);
|
|
126
126
|
}
|
|
127
127
|
async setWhiteList(whiteList, options) {
|
|
128
|
-
return await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, whiteList, this.apiUser, options);
|
|
128
|
+
return await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, { whiteList: whiteList }, this.apiUser, options);
|
|
129
129
|
}
|
|
130
130
|
async getBlackList(options) {
|
|
131
131
|
const res = await this._getJson(`${BASE_PATH}/package/getBlackList.cgi`, undefined, options);
|
|
132
132
|
return PlaneTrackerAPI_1.blackListSchema.parse(res);
|
|
133
133
|
}
|
|
134
134
|
async setBlackList(blackList, options) {
|
|
135
|
-
return await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, blackList, this.apiUser, options);
|
|
135
|
+
return await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, { blackList: blackList }, this.apiUser, options);
|
|
136
136
|
}
|
|
137
137
|
async fetchMapInfo(options) {
|
|
138
138
|
const res = await this._getJson(`${BASE_PATH}/package/getMapInfo.cgi`, undefined, options);
|
package/esm/PlaneTrackerAPI.js
CHANGED
|
@@ -92,7 +92,7 @@ export class PlaneTrackerAPI {
|
|
|
92
92
|
return trackingModeSchema.parse(res);
|
|
93
93
|
}
|
|
94
94
|
async setTrackingMode(mode, options) {
|
|
95
|
-
await this._postJsonEncoded(`${BASE_PATH}/package/setTrackingMode.cgi`, mode, this.apiUser, options);
|
|
95
|
+
await this._postJsonEncoded(`${BASE_PATH}/package/setTrackingMode.cgi`, { mode: mode }, this.apiUser, options);
|
|
96
96
|
}
|
|
97
97
|
async startTrackingPlane(icao, options) {
|
|
98
98
|
const agent = this.getClient(options?.proxyParams);
|
|
@@ -115,21 +115,21 @@ export class PlaneTrackerAPI {
|
|
|
115
115
|
return priorityListSchema.parse(res);
|
|
116
116
|
}
|
|
117
117
|
async setPriorityList(priorityList, options) {
|
|
118
|
-
return await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList }, this.apiUser, options);
|
|
118
|
+
return await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList: priorityList }, this.apiUser, options);
|
|
119
119
|
}
|
|
120
120
|
async getWhiteList(options) {
|
|
121
121
|
const res = await this._getJson(`${BASE_PATH}/package/getWhiteList.cgi`, undefined, options);
|
|
122
122
|
return whiteListSchema.parse(res);
|
|
123
123
|
}
|
|
124
124
|
async setWhiteList(whiteList, options) {
|
|
125
|
-
return await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, whiteList, this.apiUser, options);
|
|
125
|
+
return await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, { whiteList: whiteList }, this.apiUser, options);
|
|
126
126
|
}
|
|
127
127
|
async getBlackList(options) {
|
|
128
128
|
const res = await this._getJson(`${BASE_PATH}/package/getBlackList.cgi`, undefined, options);
|
|
129
129
|
return blackListSchema.parse(res);
|
|
130
130
|
}
|
|
131
131
|
async setBlackList(blackList, options) {
|
|
132
|
-
return await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, blackList, this.apiUser, options);
|
|
132
|
+
return await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, { blackList: blackList }, this.apiUser, options);
|
|
133
133
|
}
|
|
134
134
|
async fetchMapInfo(options) {
|
|
135
135
|
const res = await this._getJson(`${BASE_PATH}/package/getMapInfo.cgi`, undefined, options);
|
package/package.json
CHANGED
|
@@ -213,7 +213,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
213
213
|
maxSpeedKmph?: number | undefined;
|
|
214
214
|
}[];
|
|
215
215
|
}>;
|
|
216
|
-
setZones(zones: TZones
|
|
216
|
+
setZones(zones: TZones, options?: THttpRequestOptions): Promise<void>;
|
|
217
217
|
goToCoordinates(lat: number, lon: number, alt?: number, options?: THttpRequestOptions): Promise<TResponse>;
|
|
218
218
|
checkGenetecConnection(params: TParameters, options?: THttpRequestOptions): Promise<any>;
|
|
219
219
|
getGenetecCameraList(params: TParameters, options?: THttpRequestOptions): Promise<{
|