@evergis/api 3.0.159 → 3.0.163

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Kirill Protasov
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Kirill Protasov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # @evergis/api
2
-
3
- ```javascript
4
- import { Api } from '@evergis/api';
5
-
6
- const api = new Api({
7
- url: '/',
8
- });
9
- ```
10
-
11
- ## Possible Environment variables
12
-
13
- ```
14
-
15
- NODE_ENV = "development" | "test" | "production"
16
- URL = "string"
17
- LOGIN = "string"
18
- PASSWORD = "string"
19
- WORKSPACE = "string"
20
-
21
- ```
1
+ # @evergis/api
2
+
3
+ ```javascript
4
+ import { Api } from '@evergis/api';
5
+
6
+ const api = new Api({
7
+ url: '/',
8
+ });
9
+ ```
10
+
11
+ ## Possible Environment variables
12
+
13
+ ```
14
+
15
+ NODE_ENV = "development" | "test" | "production"
16
+ URL = "string"
17
+ LOGIN = "string"
18
+ PASSWORD = "string"
19
+ WORKSPACE = "string"
20
+
21
+ ```
package/dist/Api.d.ts CHANGED
@@ -4,7 +4,7 @@ import { Options as KyOptions } from 'ky';
4
4
  import { LoginDc } from './__generated__/data-contracts';
5
5
  import { HttpClient } from './__generated__/HttpClient';
6
6
  import { UniversalSearchService } from './__generated__/UniversalSearchService';
7
- import { Account, AccountPreview, BulkOperations, ClientSettings, External, Feedback, FileUpload, Filters, General, Geocode, IceRouter, Import, Layers, Names, Namespace, Notification, PortalSettings, Projects, ResourceCatalog, Resources, Scheduler, Security, Statistic, Styles, Tables, Tools, VectorTiles } from './services';
7
+ import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, External, Feedback, FileUpload, Filters, General, Geocode, IceRouter, Import, Layers, Names, Namespace, Notification, PortalSettings, Projects, ResourceCatalog, Resources, Scheduler, Security, Statistic, Styles, Tables, Tools, VectorTiles } from './services';
8
8
  import { Print } from './services/Print';
9
9
  export declare type ApiParams = {
10
10
  url: string;
@@ -39,6 +39,7 @@ export declare class Api extends EventEmitter {
39
39
  readonly resources: Resources;
40
40
  readonly styles: Styles;
41
41
  readonly geocode: Geocode;
42
+ readonly cameras: Cameras;
42
43
  readonly print: Print;
43
44
  readonly tools: Tools;
44
45
  readonly resourceCatalog: ResourceCatalog;
@@ -0,0 +1,86 @@
1
+ import { ArchiveCalendarDc, ArchiveTimelineDc, CameraListDc, GetArchiveCalendarParams, GetArchiveFeedParams, GetArchiveSnapshotParams, GetArchiveTimelineParams, GetCamerasParams, GetLiveFeedParams } from './data-contracts';
2
+ import { Service } from './Service';
3
+ /**
4
+ * @title Spatial Processing Core API
5
+ * @version 1.0.0
6
+ * @baseUrl /sp
7
+ */
8
+ export declare class CamerasService extends Service {
9
+ /**
10
+ * No description
11
+ *
12
+ * @tags Cameras
13
+ * @name GetCameras
14
+ * @operationId CamerasController_GetCameras
15
+ * @summary Get cameras list.
16
+ * @request GET:/cameras
17
+ * @response `200` Success
18
+ */
19
+ getCameras(query: GetCamerasParams): Promise<CameraListDc>;
20
+ /**
21
+ * No description
22
+ *
23
+ * @tags Cameras
24
+ * @name GetArchiveFeed
25
+ * @operationId CamerasController_GetArchiveFeed
26
+ * @summary Streams an FLV-over-HTTP archive feed starting at specific time.
27
+ * @request GET:/cameras/{cameraId}/archiveFeed
28
+ * @response `200` Success
29
+ */
30
+ getArchiveFeed({ cameraId, ...query }: GetArchiveFeedParams): Promise<Blob>;
31
+ /**
32
+ * No description
33
+ *
34
+ * @tags Cameras
35
+ * @name GetArchiveTimeline
36
+ * @operationId CamerasController_GetArchiveTimeline
37
+ * @summary Returns a list of records available within a given timeframe.
38
+ * @request GET:/cameras/{cameraId}/archiveTimeline
39
+ * @response `200` Success
40
+ */
41
+ getArchiveTimeline({ cameraId, ...query }: GetArchiveTimelineParams): Promise<ArchiveTimelineDc>;
42
+ /**
43
+ * No description
44
+ *
45
+ * @tags Cameras
46
+ * @name GetArchiveCalendar
47
+ * @operationId CamerasController_GetArchiveCalendar
48
+ * @summary Returns a list of records available within a given timeframe.
49
+ * @request GET:/cameras/{cameraId}/archiveCalendar
50
+ * @response `200` Success
51
+ */
52
+ getArchiveCalendar({ cameraId, ...query }: GetArchiveCalendarParams): Promise<ArchiveCalendarDc>;
53
+ /**
54
+ * No description
55
+ *
56
+ * @tags Cameras
57
+ * @name GetArchiveSnapshot
58
+ * @operationId CamerasController_GetArchiveSnapshot
59
+ * @summary Returns a JPEG image from the Camera’s archive.
60
+ * @request GET:/cameras/{cameraId}/archiveSnapshot
61
+ * @response `200` Success
62
+ */
63
+ getArchiveSnapshot({ cameraId, ...query }: GetArchiveSnapshotParams): Promise<Blob>;
64
+ /**
65
+ * No description
66
+ *
67
+ * @tags Cameras
68
+ * @name GetLiveFeed
69
+ * @operationId CamerasController_GetLiveFeed
70
+ * @summary Streams live video feed from the Camera.
71
+ * @request GET:/cameras/{cameraId}/liveFeed
72
+ * @response `200` Success
73
+ */
74
+ getLiveFeed({ cameraId, ...query }: GetLiveFeedParams): Promise<Blob>;
75
+ /**
76
+ * No description
77
+ *
78
+ * @tags Cameras
79
+ * @name GetLiveSnapshot
80
+ * @operationId CamerasController_GetLiveSnapshot
81
+ * @summary Returns a JPEG image from the Camera’s live feed.
82
+ * @request GET:/cameras/{cameraId}/liveSnapshot
83
+ * @response `200` Success
84
+ */
85
+ getLiveSnapshot(cameraId: string): Promise<Blob>;
86
+ }
@@ -1,4 +1,4 @@
1
- import { ExternalLayerInfoDc, GetDataSchemaParams, GetExternalArcGisLayersParams, GetExternalPbfLayersParams, GetExternalWmsLayersParams, GetRasterAttributesParams, GetRasterMetaParams, ImportDataSchema, ImportFileFeaturesCountDc, NetCdfMetaDc, RasterMetaDc, ReadPartParams } from './data-contracts';
1
+ import { ExternalLayerInfoDc, GetDataSchemaParams, GetExternalArcgisFsLayersParams, GetExternalArcGisLayersParams, GetExternalPbfLayersParams, GetExternalWmsLayersParams, GetRasterAttributesParams, GetRasterMetaParams, ImportDataSchema, ImportFileFeaturesCountDc, NetCdfMetaDc, RasterMetaDc, ReadPartParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -61,13 +61,24 @@ export declare class ImportService extends Service {
61
61
  * @response `200` Success
62
62
  */
63
63
  getExternalPbfLayers(query: GetExternalPbfLayersParams): Promise<ExternalLayerInfoDc[]>;
64
+ /**
65
+ * No description
66
+ *
67
+ * @tags ImportService
68
+ * @name GetExternalArcgisFsLayers
69
+ * @operationId ImportServiceController_GetExternalArcgisFSLayers
70
+ * @summary Get list of external ArcGis FeatureServer layers.
71
+ * @request GET:/import/arcgisfeatureservice
72
+ * @response `200` Success
73
+ */
74
+ getExternalArcgisFsLayers(query: GetExternalArcgisFsLayersParams): Promise<ExternalLayerInfoDc[]>;
64
75
  /**
65
76
  * No description
66
77
  *
67
78
  * @tags ImportService
68
79
  * @name GetExternalArcGisLayers
69
80
  * @operationId ImportServiceController_GetExternalArcGisLayers
70
- * @summary Get list of external ArcGis map service layers.
81
+ * @summary Get list of external ArcGis MapServer layers.
71
82
  * @request GET:/import/arcgismapservice
72
83
  * @response `200` Success
73
84
  */
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, FeatureLayerServiceInfoDc, FeaturesContainsParams, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeaturesParams, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams5, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, SetPermissionsBatchPayload, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
1
+ import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, FeatureLayerServiceInfoDc, FeaturesContainsParams, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeaturesParams, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams6, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, SetPermissionsBatchPayload, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -556,7 +556,7 @@ export declare class LayersService extends Service {
556
556
  * @request GET:/layers/{name}/{id}/metadata
557
557
  * @response `200` Success
558
558
  */
559
- getRasterMeta({ name, id, ...query }: GetRasterMetaParams5): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
559
+ getRasterMeta({ name, id, ...query }: GetRasterMetaParams6): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
560
560
  /**
561
561
  * No description
562
562
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams2, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams3, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -49,7 +49,7 @@ export declare class ProjectsService extends Service {
49
49
  * @request DELETE:/projects
50
50
  * @response `200` Success
51
51
  */
52
- deleteResources(query: DeleteResourcesParams2): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams3): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams7, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams6, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -27,7 +27,7 @@ export declare class StatisticService extends Service {
27
27
  * @request GET:/statistics/classify
28
28
  * @response `200` Success
29
29
  */
30
- classify(query: ClassifyParams7): Promise<ClassifyDc>;
30
+ classify(query: ClassifyParams6): Promise<ClassifyDc>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams10, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams2, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -49,7 +49,7 @@ export declare class TablesService extends Service {
49
49
  * @request DELETE:/tables
50
50
  * @response `200` Success
51
51
  */
52
- deleteResources(query: DeleteResourcesParams10): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams2): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams3, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilities1Params, GetCapabilitiesParams9, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -16,7 +16,7 @@ export declare class WmsServerService extends Service {
16
16
  * @request GET:/wms#REQUEST=GetCapabilities
17
17
  * @response `200` Success
18
18
  */
19
- getCapabilities(query: GetCapabilitiesParams3): Promise<void>;
19
+ getCapabilities(query: GetCapabilitiesParams9): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *