@evergis/api 4.1.43 → 4.1.48

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/dist/index.js CHANGED
@@ -1184,140 +1184,6 @@ class BulkOperationsService extends Service {
1184
1184
  class BulkOperations extends BulkOperationsService {
1185
1185
  }
1186
1186
 
1187
- /* eslint-disable */
1188
- /* tslint:disable */
1189
- /*
1190
- * ---------------------------------------------------------------
1191
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1192
- * ## ##
1193
- * ## AUTHOR: acacode ##
1194
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1195
- * ---------------------------------------------------------------
1196
- */
1197
- // @ts-nocheck
1198
- /**
1199
- * @title Spatial Processing Core API
1200
- * @version 1.5.1.0
1201
- * @baseUrl /sp
1202
- */
1203
- class CamerasService extends Service {
1204
- /**
1205
- * No description
1206
- *
1207
- * @tags Cameras
1208
- * @name GetCameras
1209
- * @operationId CamerasController_GetCameras
1210
- * @summary Get cameras list.
1211
- * @request GET:/cameras
1212
- * @secure
1213
- * @response `200` OK
1214
- */
1215
- getCameras(query) {
1216
- return this.http.get(`/cameras`, query).json();
1217
- }
1218
- /**
1219
- * No description
1220
- *
1221
- * @tags Cameras
1222
- * @name GetArchiveFeed
1223
- * @operationId CamerasController_GetArchiveFeed
1224
- * @summary Streams an FLV-over-HTTP archive feed starting at specific time.
1225
- * @request GET:/cameras/{cameraId}/archiveFeed
1226
- * @secure
1227
- * @response `200` OK
1228
- */
1229
- getArchiveFeed({ cameraId, ...query }) {
1230
- return this.http.get(`/cameras/${cameraId}/archiveFeed`, query).blob();
1231
- }
1232
- /**
1233
- * No description
1234
- *
1235
- * @tags Cameras
1236
- * @name GetArchiveTimeline
1237
- * @operationId CamerasController_GetArchiveTimeline
1238
- * @summary Returns a list of records available within a given timeframe.
1239
- * @request GET:/cameras/{cameraId}/archiveTimeline
1240
- * @secure
1241
- * @response `200` OK
1242
- */
1243
- getArchiveTimeline({ cameraId, ...query }) {
1244
- return this.http.get(`/cameras/${cameraId}/archiveTimeline`, query).json();
1245
- }
1246
- /**
1247
- * No description
1248
- *
1249
- * @tags Cameras
1250
- * @name GetArchiveCalendar
1251
- * @operationId CamerasController_GetArchiveCalendar
1252
- * @summary Returns a list of records available within a given timeframe.
1253
- * @request GET:/cameras/{cameraId}/archiveCalendar
1254
- * @secure
1255
- * @response `200` OK
1256
- */
1257
- getArchiveCalendar({ cameraId, ...query }) {
1258
- return this.http.get(`/cameras/${cameraId}/archiveCalendar`, query).json();
1259
- }
1260
- /**
1261
- * No description
1262
- *
1263
- * @tags Cameras
1264
- * @name GetArchiveSnapshot
1265
- * @operationId CamerasController_GetArchiveSnapshot
1266
- * @summary Returns a JPEG image from the Camera’s archive.
1267
- * @request GET:/cameras/{cameraId}/archiveSnapshot
1268
- * @secure
1269
- * @response `200` OK
1270
- */
1271
- getArchiveSnapshot({ cameraId, ...query }) {
1272
- return this.http.get(`/cameras/${cameraId}/archiveSnapshot`, query).blob();
1273
- }
1274
- /**
1275
- * No description
1276
- *
1277
- * @tags Cameras
1278
- * @name GetLiveFeed
1279
- * @operationId CamerasController_GetLiveFeed
1280
- * @summary Streams live video feed from the Camera.
1281
- * @request GET:/cameras/{cameraId}/liveFeed
1282
- * @secure
1283
- * @response `200` OK
1284
- */
1285
- getLiveFeed({ cameraId, ...query }) {
1286
- return this.http.get(`/cameras/${cameraId}/liveFeed`, query).blob();
1287
- }
1288
- /**
1289
- * No description
1290
- *
1291
- * @tags Cameras
1292
- * @name GetLiveSnapshot
1293
- * @operationId CamerasController_GetLiveSnapshot
1294
- * @summary Returns a JPEG image from the Camera’s live feed.
1295
- * @request GET:/cameras/{cameraId}/liveSnapshot
1296
- * @secure
1297
- * @response `200` OK
1298
- */
1299
- getLiveSnapshot(cameraId) {
1300
- return this.http.get(`/cameras/${cameraId}/liveSnapshot`).blob();
1301
- }
1302
- /**
1303
- * No description
1304
- *
1305
- * @tags Cameras
1306
- * @name GetLivePreviewStream
1307
- * @operationId CamerasController_GetLivePreviewStream
1308
- * @summary Get live preview stream.
1309
- * @request GET:/cameras/{cameraId}/getLivePreviewsStream
1310
- * @secure
1311
- * @response `200` OK
1312
- */
1313
- getLivePreviewStream({ cameraId, ...query }) {
1314
- return this.http.get(`/cameras/${cameraId}/getLivePreviewsStream`, query).json();
1315
- }
1316
- }
1317
-
1318
- class Cameras extends CamerasService {
1319
- }
1320
-
1321
1187
  /* eslint-disable */
1322
1188
  /* tslint:disable */
1323
1189
  /*
@@ -2879,9 +2745,9 @@ exports.UrlPath = void 0;
2879
2745
  UrlPath["Presentation"] = "/presentation";
2880
2746
  UrlPath["Portal"] = "/portal";
2881
2747
  })(exports.UrlPath || (exports.UrlPath = {}));
2882
- const apiEventsByResponseStatus = {
2883
- 401: exports.ApiEvent.Unauthorized,
2884
- };
2748
+ /* const apiEventsByResponseStatus: Record<number, ApiEvent> = {
2749
+ 401: ApiEvent.Unauthorized,
2750
+ }; */
2885
2751
  const SHARED_PORT = "8082";
2886
2752
  const URL_PATHS = Object.values(exports.UrlPath);
2887
2753
  const DEFAULT_URL_PATH = URL_PATHS[0];
@@ -2915,7 +2781,6 @@ class Api extends EventEmitter {
2915
2781
  queryToken;
2916
2782
  dataSource;
2917
2783
  remoteTaskManager;
2918
- cameras;
2919
2784
  http;
2920
2785
  wsUrl;
2921
2786
  urlPath;
@@ -2974,16 +2839,18 @@ class Api extends EventEmitter {
2974
2839
  }
2975
2840
  },
2976
2841
  ],
2977
- afterResponse: [
2978
- (request, options, response) => {
2979
- const apiEvent = apiEventsByResponseStatus[response?.status];
2980
- if (apiEvent) {
2981
- this.emit(apiEvent, errorHandler(new ky.HTTPError(response, request, options)));
2982
- }
2983
- return response;
2984
- },
2985
- ...(hooks?.afterResponse || []),
2986
- ],
2842
+ /* afterResponse: [
2843
+ (request, options, response) => {
2844
+ const apiEvent = apiEventsByResponseStatus[response?.status];
2845
+
2846
+ if (apiEvent) {
2847
+ this.emit(apiEvent, errorHandler(new HTTPError(response, request, options)));
2848
+ }
2849
+
2850
+ return response;
2851
+ },
2852
+ ...(hooks?.afterResponse || []),
2853
+ ], */
2987
2854
  },
2988
2855
  });
2989
2856
  this.url = url;
@@ -3015,7 +2882,6 @@ class Api extends EventEmitter {
3015
2882
  this.queryToken = new QueryTokenAccessService(this.http);
3016
2883
  this.dataSource = new DataSourceService(this.http);
3017
2884
  this.remoteTaskManager = new RemoteTaskManager(this.http);
3018
- this.cameras = new Cameras(this.http);
3019
2885
  this.names = new Names({
3020
2886
  account: this.account,
3021
2887
  });
@@ -6210,7 +6076,6 @@ exports.Account = Account;
6210
6076
  exports.AccountPreview = AccountPreview;
6211
6077
  exports.Api = Api;
6212
6078
  exports.BulkOperations = BulkOperations;
6213
- exports.Cameras = Cameras;
6214
6079
  exports.ClientSettings = ClientSettings;
6215
6080
  exports.Eql = Eql;
6216
6081
  exports.External = External;