@evergis/api 4.1.0 → 4.1.2

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
@@ -1,13 +1,13 @@
1
- import { EventEmitter } from '@evergis/event-emitter';
2
- import { Options as KyOptions } from 'ky';
3
- import { HubConnection } from '@microsoft/signalr';
4
- import { HttpClient } from './__generated__/HttpClient';
5
- import { DataSourceService } from './__generated__/DataSourceService';
6
- import { QueryTokenAccessService } from './__generated__/QueryTokenAccessService';
7
- import { SpatialReferencesService } from './__generated__/SpatialReferencesService';
8
- import { CatalogService } from './__generated__/CatalogService';
9
- import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, Eql, Feedback, FileUpload, Filters, Geocode, Import, Layers, Names, Notification, PortalSettings, Projects, RemoteTaskManager, Resources, Security, Statistic, Tables, Tools, VectorTiles } from './services';
10
- import { AuthenticateParams, LoginDc } from './__generated__/data-contracts';
1
+ import { Options as KyOptions } from "ky";
2
+ import { HubConnection } from "@microsoft/signalr";
3
+ import { HttpClient } from "./__generated__/HttpClient";
4
+ import { DataSourceService } from "./__generated__/DataSourceService";
5
+ import { QueryTokenAccessService } from "./__generated__/QueryTokenAccessService";
6
+ import { SpatialReferencesService } from "./__generated__/SpatialReferencesService";
7
+ import { CatalogService } from "./__generated__/CatalogService";
8
+ import { EventEmitter } from "./EventEmitter";
9
+ import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, Eql, Feedback, FileUpload, Filters, Geocode, Import, Layers, Names, Notification, PortalSettings, Projects, RemoteTaskManager, Resources, Security, Statistic, Tables, Tools, VectorTiles } from "./services";
10
+ import { AuthenticateParams, LoginDc } from "./__generated__/data-contracts";
11
11
  export declare type ApiParams = {
12
12
  url: string;
13
13
  wsUrl?: string;
@@ -23,7 +23,7 @@ export declare enum UrlPath {
23
23
  Presentation = "/presentation",
24
24
  Portal = "/portal"
25
25
  }
26
- export declare type SocAuthNetwork = 'vk' | 'facebook' | 'google';
26
+ export declare type SocAuthNetwork = "vk" | "facebook" | "google";
27
27
  export declare class Api extends EventEmitter {
28
28
  protected readonly http: HttpClient;
29
29
  private readonly wsUrl;
@@ -0,0 +1,11 @@
1
+ export declare type EventHandler = (event?: any) => void;
2
+ export declare type WildCardEventHandler = (type: string, event?: any) => void;
3
+ export declare class EventEmitter {
4
+ private handlers;
5
+ on(type: "*", handler: WildCardEventHandler): void;
6
+ on(type: string, handler: EventHandler): void;
7
+ off(type: "*", handler: WildCardEventHandler): void;
8
+ off(type: string, handler: EventHandler): void;
9
+ emit(type: string, event?: any): void;
10
+ once(type: string, handler: EventHandler): void;
11
+ }
@@ -282,6 +282,18 @@ export declare class AccountService extends Service {
282
282
  * @response `200` OK
283
283
  */
284
284
  createNamespace(query: CreateNamespaceParams): Promise<NamespaceInfoDc>;
285
+ /**
286
+ * No description
287
+ *
288
+ * @tags Account
289
+ * @name RemoveNamespace
290
+ * @operationId AccountController_RemoveNamespaceAsync
291
+ * @summary Remove namespace.
292
+ * @request DELETE:/account/{namespace}
293
+ * @secure
294
+ * @response `200` OK
295
+ */
296
+ removeNamespace(namespace: string): Promise<void>;
285
297
  /**
286
298
  * No description
287
299
  *
@@ -1,4 +1,4 @@
1
- import { ArcGisDataSourceDc, ArcGisDataSourceInfoDc, GetDataSourcesListParams, MosRuDataSourceDc, MosRuDataSourceInfoDc, PagedListDataSourceInfoDc, PostgresDataSourceDc, PostgresDataSourceInfoDc, S3DataSourceDc, S3DataSourceInfoDc, TestConnectionInfoDc, WmsDataSourceDc } from './data-contracts';
1
+ import { ArcGisDataSourceDc, ArcGisDataSourceInfoDc, GetDataSourcesListParams, MosRuDataSourceDc, MosRuDataSourceInfoDc, PagedListDataSourceInfoDc, PostgresDataSourceDc, PostgresDataSourceInfoDc, S3DataSourceDc, S3DataSourceInfoDc, SparkDataSourceDc, SparkDataSourceInfoDc, TestConnectionInfoDc, WmsDataSourceDc } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -48,7 +48,7 @@ export declare class DataSourceService extends Service {
48
48
  * @tags DataSource
49
49
  * @name CreateDataSource
50
50
  * @operationId DataSourceController_CreateDataSource
51
- * @summary Create data source.
51
+ * @summary Create postgresql data source.
52
52
  * @request POST:/ds
53
53
  * @secure
54
54
  * @response `200` OK
@@ -60,7 +60,7 @@ export declare class DataSourceService extends Service {
60
60
  * @tags DataSource
61
61
  * @name UpdateDataSource
62
62
  * @operationId DataSourceController_UpdateDataSource
63
- * @summary Update data source.
63
+ * @summary Update postgresql data source.
64
64
  * @request PATCH:/ds
65
65
  * @secure
66
66
  * @response `200` OK
@@ -77,7 +77,7 @@ export declare class DataSourceService extends Service {
77
77
  * @secure
78
78
  * @response `200` OK
79
79
  */
80
- getDataSource(name: string): Promise<ArcGisDataSourceInfoDc | MosRuDataSourceInfoDc | PostgresDataSourceInfoDc | S3DataSourceInfoDc>;
80
+ getDataSource(name: string): Promise<ArcGisDataSourceInfoDc | MosRuDataSourceInfoDc | PostgresDataSourceInfoDc | S3DataSourceInfoDc | SparkDataSourceInfoDc>;
81
81
  /**
82
82
  * No description
83
83
  *
@@ -108,7 +108,7 @@ export declare class DataSourceService extends Service {
108
108
  * @tags DataSource
109
109
  * @name CreateMosRuDataSource
110
110
  * @operationId DataSourceController_CreateMosRuDataSource
111
- * @summary Create data.mos.ru source.
111
+ * @summary Create data.mos.ru data source.
112
112
  * @request POST:/ds/dataMosRu
113
113
  * @secure
114
114
  * @response `200` OK
@@ -120,7 +120,7 @@ export declare class DataSourceService extends Service {
120
120
  * @tags DataSource
121
121
  * @name UpdateMosRuDataSource
122
122
  * @operationId DataSourceController_UpdateMosRuDataSource
123
- * @summary Update arcgis data source.
123
+ * @summary Update data.mos.ru data source.
124
124
  * @request PATCH:/ds/dataMosRu
125
125
  * @secure
126
126
  * @response `200` OK
@@ -150,6 +150,30 @@ export declare class DataSourceService extends Service {
150
150
  * @response `200` OK
151
151
  */
152
152
  updateS3DataSource(data: S3DataSourceDc): Promise<void>;
153
+ /**
154
+ * No description
155
+ *
156
+ * @tags DataSource
157
+ * @name CreateSparkDataSource
158
+ * @operationId DataSourceController_CreateSparkDataSource
159
+ * @summary Create spark data source.
160
+ * @request POST:/ds/spark
161
+ * @secure
162
+ * @response `200` OK
163
+ */
164
+ createSparkDataSource(data: SparkDataSourceDc): Promise<void>;
165
+ /**
166
+ * No description
167
+ *
168
+ * @tags DataSource
169
+ * @name UpdateSparkDataSource
170
+ * @operationId DataSourceController_UpdateSparkDataSource
171
+ * @summary Update spark data source.
172
+ * @request PATCH:/ds/spark
173
+ * @secure
174
+ * @response `200` OK
175
+ */
176
+ updateSparkDataSource(data: SparkDataSourceDc): Promise<void>;
153
177
  /**
154
178
  * No description
155
179
  *
@@ -1,4 +1,4 @@
1
- import { AttributeDefinitionDc, AvailiableValuesDc, EqlRequestDc, FunctionInfoDc, GetAvailiableLayerParametersParams, GetLayerParameters1Params, GetLayerParametersParams, PagedFeaturesListDc, RemoveLayerParameterValueParams, SetLayerParametersParams, SetLayerParametersPayload, SetLayerParameterValueParams } from './data-contracts';
1
+ import { AttributeDefinitionDc, AvailiableValuesDc, EqlRequestDc, GetAvailiableLayerParametersParams, GetLayerParameters1Params, GetLayerParametersParams, PagedFeaturesListDc, RemoveLayerParameterValueParams, SetLayerParametersParams, SetLayerParametersPayload, SetLayerParameterValueParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -6,18 +6,6 @@ import { Service } from './Service';
6
6
  * @baseUrl /sp
7
7
  */
8
8
  export declare class EqlService extends Service {
9
- /**
10
- * No description
11
- *
12
- * @tags Eql
13
- * @name GetFunctionsList
14
- * @operationId EqlController_GetFunctionsList
15
- * @summary Returns list of available functions.
16
- * @request GET:/eql/functions
17
- * @secure
18
- * @response `200` OK
19
- */
20
- getFunctionsList(): Promise<FunctionInfoDc[]>;
21
9
  /**
22
10
  * No description
23
11
  *
@@ -1,4 +1,4 @@
1
- import { AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkExtentsDc, BulkFilteredFeaturesCountDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, GetBulkExtentsParams, GetBulkExtentsPayload, GetBulkFeaturesPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCount1Params, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountPayload, GetLayerExtentParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams8, GetTilesLayerImage1Params, GetTilesLayerImageParams, GetTilesLayerImageWithFormatAndDpiParams, LayerUpdateInfoDc, LinearServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, PythonServiceConfigurationDc, PythonServiceInfoDc, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteServiceConfigurationDc, ServiceInfoDc, ServiceListDc, TileCatalogServiceInfoDc, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
1
+ import { AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkExtentsDc, BulkFilteredFeaturesCountDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, GetBulkExtentsParams, GetBulkExtentsPayload, GetBulkFeaturesPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCount1Params, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountPayload, GetLayerExtentParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams7, GetTilesLayerImage1Params, GetTilesLayerImageParams, GetTilesLayerImageWithFormatAndDpiParams, LayerUpdateInfoDc, LinearServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, PythonServiceConfigurationDc, PythonServiceInfoDc, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteServiceConfigurationDc, ServiceInfoDc, ServiceListDc, TileCatalogServiceInfoDc, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -533,7 +533,7 @@ export declare class LayersService extends Service {
533
533
  * @secure
534
534
  * @response `200` OK
535
535
  */
536
- getRasterMeta({ name, id, ...query }: GetRasterMetaParams8): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
536
+ getRasterMeta({ name, id, ...query }: GetRasterMetaParams7): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
537
537
  /**
538
538
  * No description
539
539
  *
@@ -1,4 +1,4 @@
1
- import { BulkOperationResultDc, DeleteResourcesParams1, EnvelopeDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, GetProjectEnvelopeParams, GetProjectsInfoParams, GetProjectsListParams, JsonPatchDocumentExtendedProjectInfoDcV2, PagedListProjectInfoDc, ResourceDependenciesDc, UpdateProjectV2Payload } from './data-contracts';
1
+ import { BulkOperationResultDc, CatalogConfigurationDc, ConfigurationType, DeleteResourcesParams3, EnvelopeDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, GetProjectEnvelopeParams, GetProjectsInfoParams, GetProjectsListParams, JsonPatchDocumentExtendedProjectInfoDcV2, PagedListProjectInfoDc, PatchProjectConfigurationPayload, PutProjectConfigurationPayload, ResourceDependenciesDc, UpdateProjectV2Payload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -41,7 +41,7 @@ export declare class ProjectsService extends Service {
41
41
  * @secure
42
42
  * @response `200` OK
43
43
  */
44
- deleteResources(query: DeleteResourcesParams1): Promise<BulkOperationResultDc[]>;
44
+ deleteResources(query: DeleteResourcesParams3): Promise<BulkOperationResultDc[]>;
45
45
  /**
46
46
  * No description
47
47
  *
@@ -126,6 +126,54 @@ export declare class ProjectsService extends Service {
126
126
  * @response `200` OK
127
127
  */
128
128
  getProjectLayersExtendedInfo(name: string): Promise<ExtendedProjectLayersInfo>;
129
+ /**
130
+ * No description
131
+ *
132
+ * @tags Projects
133
+ * @name PatchProjectConfiguration
134
+ * @operationId ProjectsController_PatchProjectConfiguration
135
+ * @summary Applies partial updates using JSON Patch.
136
+ * @request PATCH:/projects/{name}/configuration/{type}
137
+ * @secure
138
+ * @response `200` OK
139
+ */
140
+ patchProjectConfiguration(name: string, type: ConfigurationType, data: PatchProjectConfigurationPayload): Promise<CatalogConfigurationDc>;
141
+ /**
142
+ * No description
143
+ *
144
+ * @tags Projects
145
+ * @name PutProjectConfiguration
146
+ * @operationId ProjectsController_PutProjectConfiguration
147
+ * @summary Creates or updates configuration (full replacement).
148
+ * @request PUT:/projects/{name}/configuration/{type}
149
+ * @secure
150
+ * @response `200` OK
151
+ */
152
+ putProjectConfiguration(name: string, type: ConfigurationType, data: PutProjectConfigurationPayload): Promise<CatalogConfigurationDc>;
153
+ /**
154
+ * No description
155
+ *
156
+ * @tags Projects
157
+ * @name GetProjectConfiguration
158
+ * @operationId ProjectsController_GetProjectConfiguration
159
+ * @summary Gets configuration for a resource and type.
160
+ * @request GET:/projects/{name}/configuration/{type}
161
+ * @secure
162
+ * @response `200` OK
163
+ */
164
+ getProjectConfiguration(name: string, type: ConfigurationType): Promise<CatalogConfigurationDc>;
165
+ /**
166
+ * No description
167
+ *
168
+ * @tags Projects
169
+ * @name DeleteProjectConfiguration
170
+ * @operationId ProjectsController_DeleteProjectConfiguration
171
+ * @summary Creates or updates configuration (full replacement).
172
+ * @request DELETE:/projects/{name}/configuration/{type}
173
+ * @secure
174
+ * @response `200` OK
175
+ */
176
+ deleteProjectConfiguration(name: string, type: ConfigurationType): Promise<CatalogConfigurationDc>;
129
177
  /**
130
178
  * No description
131
179
  *
@@ -1,4 +1,4 @@
1
- import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams5, DeleteTableDataParams, DetailedTableInfoDc, GetTableDataParams, GetTableListParams, GetTablesInfoParams, MapTableInfoDc, MapTableParams, PagedBulkFeaturesListDc, PagedFeaturesListDc, PagedListFeatureDc, PagedListTableListItemDc, ResourceDependenciesDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
1
+ import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams4, DeleteTableDataParams, DetailedTableInfoDc, GetTableDataParams, GetTableListParams, GetTablesInfoParams, MapTableInfoDc, MapTableParams, PagedBulkFeaturesListDc, PagedFeaturesListDc, PagedListFeatureDc, PagedListTableListItemDc, ResourceDependenciesDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -41,7 +41,7 @@ export declare class TablesService extends Service {
41
41
  * @secure
42
42
  * @response `200` OK
43
43
  */
44
- deleteResources(query: DeleteResourcesParams5): Promise<BulkOperationResultDc[]>;
44
+ deleteResources(query: DeleteResourcesParams4): Promise<BulkOperationResultDc[]>;
45
45
  /**
46
46
  * No description
47
47
  *