@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/Api.d.ts CHANGED
@@ -6,7 +6,7 @@ import { QueryTokenAccessService } from './__generated__/QueryTokenAccessService
6
6
  import { SpatialReferencesService } from './__generated__/SpatialReferencesService';
7
7
  import { CatalogService } from './__generated__/CatalogService';
8
8
  import { EventEmitter } from './EventEmitter';
9
- import { Account, AccountPreview, External, BulkOperations, Cameras, ClientSettings, Eql, Feedback, FileUpload, Filters, Geocode, Import, Layers, Names, Notification, PortalSettings, Projects, RemoteTaskManager, Resources, Security, Statistic, Tables, Tools, VectorTiles } from './services';
9
+ import { Account, AccountPreview, External, BulkOperations, ClientSettings, Eql, Feedback, FileUpload, Filters, Geocode, Import, Layers, Names, Notification, PortalSettings, Projects, RemoteTaskManager, Resources, Security, Statistic, Tables, Tools, VectorTiles } from './services';
10
10
  import { AuthenticateParams, LoginDc } from './__generated__/data-contracts';
11
11
  export type ApiParams = {
12
12
  url: string;
@@ -54,7 +54,6 @@ export declare class Api extends EventEmitter {
54
54
  readonly queryToken: QueryTokenAccessService;
55
55
  readonly dataSource: DataSourceService;
56
56
  readonly remoteTaskManager: RemoteTaskManager;
57
- readonly cameras: Cameras;
58
57
  protected readonly http: HttpClient;
59
58
  private readonly wsUrl;
60
59
  private readonly urlPath;
package/dist/api.esm.js CHANGED
@@ -1183,140 +1183,6 @@ class BulkOperationsService extends Service {
1183
1183
  class BulkOperations extends BulkOperationsService {
1184
1184
  }
1185
1185
 
1186
- /* eslint-disable */
1187
- /* tslint:disable */
1188
- /*
1189
- * ---------------------------------------------------------------
1190
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1191
- * ## ##
1192
- * ## AUTHOR: acacode ##
1193
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1194
- * ---------------------------------------------------------------
1195
- */
1196
- // @ts-nocheck
1197
- /**
1198
- * @title Spatial Processing Core API
1199
- * @version 1.5.1.0
1200
- * @baseUrl /sp
1201
- */
1202
- class CamerasService extends Service {
1203
- /**
1204
- * No description
1205
- *
1206
- * @tags Cameras
1207
- * @name GetCameras
1208
- * @operationId CamerasController_GetCameras
1209
- * @summary Get cameras list.
1210
- * @request GET:/cameras
1211
- * @secure
1212
- * @response `200` OK
1213
- */
1214
- getCameras(query) {
1215
- return this.http.get(`/cameras`, query).json();
1216
- }
1217
- /**
1218
- * No description
1219
- *
1220
- * @tags Cameras
1221
- * @name GetArchiveFeed
1222
- * @operationId CamerasController_GetArchiveFeed
1223
- * @summary Streams an FLV-over-HTTP archive feed starting at specific time.
1224
- * @request GET:/cameras/{cameraId}/archiveFeed
1225
- * @secure
1226
- * @response `200` OK
1227
- */
1228
- getArchiveFeed({ cameraId, ...query }) {
1229
- return this.http.get(`/cameras/${cameraId}/archiveFeed`, query).blob();
1230
- }
1231
- /**
1232
- * No description
1233
- *
1234
- * @tags Cameras
1235
- * @name GetArchiveTimeline
1236
- * @operationId CamerasController_GetArchiveTimeline
1237
- * @summary Returns a list of records available within a given timeframe.
1238
- * @request GET:/cameras/{cameraId}/archiveTimeline
1239
- * @secure
1240
- * @response `200` OK
1241
- */
1242
- getArchiveTimeline({ cameraId, ...query }) {
1243
- return this.http.get(`/cameras/${cameraId}/archiveTimeline`, query).json();
1244
- }
1245
- /**
1246
- * No description
1247
- *
1248
- * @tags Cameras
1249
- * @name GetArchiveCalendar
1250
- * @operationId CamerasController_GetArchiveCalendar
1251
- * @summary Returns a list of records available within a given timeframe.
1252
- * @request GET:/cameras/{cameraId}/archiveCalendar
1253
- * @secure
1254
- * @response `200` OK
1255
- */
1256
- getArchiveCalendar({ cameraId, ...query }) {
1257
- return this.http.get(`/cameras/${cameraId}/archiveCalendar`, query).json();
1258
- }
1259
- /**
1260
- * No description
1261
- *
1262
- * @tags Cameras
1263
- * @name GetArchiveSnapshot
1264
- * @operationId CamerasController_GetArchiveSnapshot
1265
- * @summary Returns a JPEG image from the Camera’s archive.
1266
- * @request GET:/cameras/{cameraId}/archiveSnapshot
1267
- * @secure
1268
- * @response `200` OK
1269
- */
1270
- getArchiveSnapshot({ cameraId, ...query }) {
1271
- return this.http.get(`/cameras/${cameraId}/archiveSnapshot`, query).blob();
1272
- }
1273
- /**
1274
- * No description
1275
- *
1276
- * @tags Cameras
1277
- * @name GetLiveFeed
1278
- * @operationId CamerasController_GetLiveFeed
1279
- * @summary Streams live video feed from the Camera.
1280
- * @request GET:/cameras/{cameraId}/liveFeed
1281
- * @secure
1282
- * @response `200` OK
1283
- */
1284
- getLiveFeed({ cameraId, ...query }) {
1285
- return this.http.get(`/cameras/${cameraId}/liveFeed`, query).blob();
1286
- }
1287
- /**
1288
- * No description
1289
- *
1290
- * @tags Cameras
1291
- * @name GetLiveSnapshot
1292
- * @operationId CamerasController_GetLiveSnapshot
1293
- * @summary Returns a JPEG image from the Camera’s live feed.
1294
- * @request GET:/cameras/{cameraId}/liveSnapshot
1295
- * @secure
1296
- * @response `200` OK
1297
- */
1298
- getLiveSnapshot(cameraId) {
1299
- return this.http.get(`/cameras/${cameraId}/liveSnapshot`).blob();
1300
- }
1301
- /**
1302
- * No description
1303
- *
1304
- * @tags Cameras
1305
- * @name GetLivePreviewStream
1306
- * @operationId CamerasController_GetLivePreviewStream
1307
- * @summary Get live preview stream.
1308
- * @request GET:/cameras/{cameraId}/getLivePreviewsStream
1309
- * @secure
1310
- * @response `200` OK
1311
- */
1312
- getLivePreviewStream({ cameraId, ...query }) {
1313
- return this.http.get(`/cameras/${cameraId}/getLivePreviewsStream`, query).json();
1314
- }
1315
- }
1316
-
1317
- class Cameras extends CamerasService {
1318
- }
1319
-
1320
1186
  /* eslint-disable */
1321
1187
  /* tslint:disable */
1322
1188
  /*
@@ -2878,9 +2744,9 @@ var UrlPath;
2878
2744
  UrlPath["Presentation"] = "/presentation";
2879
2745
  UrlPath["Portal"] = "/portal";
2880
2746
  })(UrlPath || (UrlPath = {}));
2881
- const apiEventsByResponseStatus = {
2882
- 401: ApiEvent.Unauthorized,
2883
- };
2747
+ /* const apiEventsByResponseStatus: Record<number, ApiEvent> = {
2748
+ 401: ApiEvent.Unauthorized,
2749
+ }; */
2884
2750
  const SHARED_PORT = "8082";
2885
2751
  const URL_PATHS = Object.values(UrlPath);
2886
2752
  const DEFAULT_URL_PATH = URL_PATHS[0];
@@ -2914,7 +2780,6 @@ class Api extends EventEmitter {
2914
2780
  queryToken;
2915
2781
  dataSource;
2916
2782
  remoteTaskManager;
2917
- cameras;
2918
2783
  http;
2919
2784
  wsUrl;
2920
2785
  urlPath;
@@ -2973,16 +2838,18 @@ class Api extends EventEmitter {
2973
2838
  }
2974
2839
  },
2975
2840
  ],
2976
- afterResponse: [
2977
- (request, options, response) => {
2978
- const apiEvent = apiEventsByResponseStatus[response?.status];
2979
- if (apiEvent) {
2980
- this.emit(apiEvent, errorHandler(new HTTPError(response, request, options)));
2981
- }
2982
- return response;
2983
- },
2984
- ...(hooks?.afterResponse || []),
2985
- ],
2841
+ /* afterResponse: [
2842
+ (request, options, response) => {
2843
+ const apiEvent = apiEventsByResponseStatus[response?.status];
2844
+
2845
+ if (apiEvent) {
2846
+ this.emit(apiEvent, errorHandler(new HTTPError(response, request, options)));
2847
+ }
2848
+
2849
+ return response;
2850
+ },
2851
+ ...(hooks?.afterResponse || []),
2852
+ ], */
2986
2853
  },
2987
2854
  });
2988
2855
  this.url = url;
@@ -3014,7 +2881,6 @@ class Api extends EventEmitter {
3014
2881
  this.queryToken = new QueryTokenAccessService(this.http);
3015
2882
  this.dataSource = new DataSourceService(this.http);
3016
2883
  this.remoteTaskManager = new RemoteTaskManager(this.http);
3017
- this.cameras = new Cameras(this.http);
3018
2884
  this.names = new Names({
3019
2885
  account: this.account,
3020
2886
  });
@@ -6197,5 +6063,5 @@ var WorkerSettingsFieldType;
6197
6063
  WorkerSettingsFieldType["AttributeArray"] = "AttributeArray";
6198
6064
  })(WorkerSettingsFieldType || (WorkerSettingsFieldType = {}));
6199
6065
 
6200
- export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, Cameras, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConfigurationType, ConflictResolutionStrategy, ConnectionStatus, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, GeometryType, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, Quality, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
6066
+ export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConfigurationType, ConflictResolutionStrategy, ConnectionStatus, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, GeometryType, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, Quality, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
6201
6067
  //# sourceMappingURL=api.esm.js.map