@evergis/api 3.0.207 → 3.0.208

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.
@@ -1,4 +1,4 @@
1
- import { CreateDataSourceDc, DataSourceInfoDc, GetDataSourcesListParams, PagedListDataSourceInfoDc, UpdateDataSourceDc } from './data-contracts';
1
+ import { DataSourceInfoDc, GetDataSourcesListParams, PagedListDataSourceInfoDc, PostgresDataSourceDc, PostgresDataSourceInfoDc, TestConnectionInfoDc } 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 DataSourceService extends Service {
27
27
  * @request POST:/ds
28
28
  * @response `200` OK
29
29
  */
30
- createDataSource(data: CreateDataSourceDc): Promise<void>;
30
+ createDataSource(data: PostgresDataSourceDc): Promise<void>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -38,7 +38,7 @@ export declare class DataSourceService extends Service {
38
38
  * @request PATCH:/ds
39
39
  * @response `200` OK
40
40
  */
41
- updateDataSource(data: UpdateDataSourceDc): Promise<void>;
41
+ updateDataSource(data: PostgresDataSourceDc): Promise<void>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -49,7 +49,7 @@ export declare class DataSourceService extends Service {
49
49
  * @request GET:/ds/{name}
50
50
  * @response `200` OK
51
51
  */
52
- getDataSource(name: string): Promise<DataSourceInfoDc>;
52
+ getDataSource(name: string): Promise<DataSourceInfoDc | PostgresDataSourceInfoDc>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -61,4 +61,15 @@ export declare class DataSourceService extends Service {
61
61
  * @response `200` OK
62
62
  */
63
63
  removeDataSource(name: string): Promise<void>;
64
+ /**
65
+ * No description
66
+ *
67
+ * @tags DataSource
68
+ * @name TestConnection
69
+ * @operationId DataSourceController_TestConnection
70
+ * @summary Test ds connection.
71
+ * @request POST:/ds/testConnection
72
+ * @response `200` OK
73
+ */
74
+ testConnection(data: PostgresDataSourceDc): Promise<TestConnectionInfoDc>;
64
75
  }
@@ -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, GetBulkFeaturesPayload, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams4, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, ServiceListDc, SetPermissionsBatchPayload, SetPreviewPayload, SimpleSymbolDc, StyleDc, 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, GetBulkFeaturesPayload, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams2, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, ServiceListDc, SetPermissionsBatchPayload, SetPreviewPayload, SimpleSymbolDc, StyleDc, 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
@@ -589,7 +589,7 @@ export declare class LayersService extends Service {
589
589
  * @request GET:/layers/{name}/{id}/metadata
590
590
  * @response `200` OK
591
591
  */
592
- getRasterMeta({ name, id, ...query }: GetRasterMetaParams4): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
592
+ getRasterMeta({ name, id, ...query }: GetRasterMetaParams2): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
593
593
  /**
594
594
  * No description
595
595
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams1, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ProjectsListDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams4, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ProjectsListDc, 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` OK
51
51
  */
52
- deleteResources(query: DeleteResourcesParams1): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams4): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams4, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams2, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -38,7 +38,7 @@ export declare class StatisticService extends Service {
38
38
  * @request GET:/statistics/classify
39
39
  * @response `200` OK
40
40
  */
41
- classify(query: ClassifyParams4): Promise<ClassifyDc>;
41
+ classify(query: ClassifyParams2): Promise<ClassifyDc>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams6, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams4, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, TableListDc, 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` OK
51
51
  */
52
- deleteResources(query: DeleteResourcesParams6): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams4): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams2, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilities1Params, GetCapabilitiesParams7, 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` OK
18
18
  */
19
- getCapabilities(query: GetCapabilitiesParams2): Promise<void>;
19
+ getCapabilities(query: GetCapabilitiesParams7): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -935,6 +935,8 @@ export interface CatalogResourceDc {
935
935
  * read,write,configure
936
936
  */
937
937
  permissions?: Permissions;
938
+ /** Table schema. */
939
+ schema?: string;
938
940
  }
939
941
  /**
940
942
  *
@@ -1473,14 +1475,6 @@ export declare type CopyTaskParametersDc = FeatureTaskParametersDc & {
1473
1475
  condition?: string | null;
1474
1476
  attributeMapping?: Record<string, string | null>;
1475
1477
  };
1476
- /**
1477
- * Create data source data contract.
1478
- */
1479
- export declare type CreateDataSourceDc = DataSourceDc & {
1480
- parentId?: string | null;
1481
- owner?: string | null;
1482
- acl?: AccessControlListDc;
1483
- };
1484
1478
  /**
1485
1479
  * Create directory request.
1486
1480
  */
@@ -1622,6 +1616,12 @@ export declare type DashedBrushDc = StrokeBrushDc & {
1622
1616
  * Data source data contract.
1623
1617
  */
1624
1618
  export interface DataSourceDc {
1619
+ /** Parent id. */
1620
+ parentId?: string;
1621
+ /** Login of the owner. */
1622
+ owner?: string;
1623
+ /** Access control list for a security object. */
1624
+ acl?: AccessControlListDc;
1625
1625
  /** Name. */
1626
1626
  name?: string;
1627
1627
  /** Alias. */
@@ -1642,20 +1642,6 @@ export interface DataSourceDc {
1642
1642
  type?: DataSourceType;
1643
1643
  /** Tags. */
1644
1644
  tags?: string[];
1645
- /** Connection string. */
1646
- connectionString?: string;
1647
- /** Schema. */
1648
- schema?: string;
1649
- /**
1650
- * Date and time when the remote connection was created.
1651
- * @format date-time
1652
- */
1653
- created?: string;
1654
- /**
1655
- * Date and time when the remote connection was last modified.
1656
- * @format date-time
1657
- */
1658
- modified?: string;
1659
1645
  }
1660
1646
  /**
1661
1647
  * Data source info.
@@ -1685,10 +1671,6 @@ export interface DataSourceInfoDc {
1685
1671
  parentId?: string;
1686
1672
  /** Resource id. */
1687
1673
  resourceId?: string;
1688
- /** Connection string. */
1689
- connectionString?: string;
1690
- /** Schema. */
1691
- schema?: string;
1692
1674
  /**
1693
1675
  * Date and time when the remote connection was created.
1694
1676
  * @format date-time
@@ -3723,7 +3705,7 @@ export interface PagedListDataSourceInfoDc {
3723
3705
  offset?: number;
3724
3706
  /** @format int32 */
3725
3707
  limit?: number;
3726
- items?: DataSourceInfoDc[];
3708
+ items?: (DataSourceInfoDc | PostgresDataSourceInfoDc)[];
3727
3709
  }
3728
3710
  export interface PagedListExtendedUserInfoDc {
3729
3711
  /** @format int64 */
@@ -4146,6 +4128,28 @@ export declare type PolylineSymbolDc = SymbolDc & {
4146
4128
  * The position at the map in [X, Y] format.
4147
4129
  */
4148
4130
  export declare type PositionDc = number[];
4131
+ /**
4132
+ * Postgres connection data source connection.
4133
+ */
4134
+ export declare type PostgresDataSourceDc = DataSourceDc & {
4135
+ host?: string | null;
4136
+ userName?: string | null;
4137
+ password?: string | null;
4138
+ port?: number | null;
4139
+ database?: string | null;
4140
+ schema?: string | null;
4141
+ };
4142
+ /**
4143
+ * Postgres data source info.
4144
+ */
4145
+ export declare type PostgresDataSourceInfoDc = DataSourceInfoDc & {
4146
+ host?: string | null;
4147
+ userName?: string | null;
4148
+ password?: string | null;
4149
+ port?: number;
4150
+ database?: string | null;
4151
+ schema?: string | null;
4152
+ };
4149
4153
  /**
4150
4154
  * Configuration of a postgres feature layer service.
4151
4155
  */
@@ -4984,6 +4988,8 @@ ProxyService
4984
4988
  RemoteTileService
4985
4989
 
4986
4990
  File
4991
+
4992
+ DataSource
4987
4993
  */
4988
4994
  export declare enum ResourceTypeFilter {
4989
4995
  Map = "Map",
@@ -4992,7 +4998,8 @@ export declare enum ResourceTypeFilter {
4992
4998
  RasterCatalog = "RasterCatalog",
4993
4999
  ProxyService = "ProxyService",
4994
5000
  RemoteTileService = "RemoteTileService",
4995
- File = "File"
5001
+ File = "File",
5002
+ DataSource = "DataSource"
4996
5003
  }
4997
5004
  export declare enum ResourceTypeLink {
4998
5005
  Table = "tables",
@@ -6198,6 +6205,15 @@ export interface TemplateModelDc {
6198
6205
  /** Checks if title enabled. */
6199
6206
  titleEnabled?: boolean;
6200
6207
  }
6208
+ /**
6209
+ * Test connection data contract.
6210
+ */
6211
+ export interface TestConnectionInfoDc {
6212
+ /** Check if connection succeed. */
6213
+ isSuccess?: boolean;
6214
+ /** Message. */
6215
+ message?: string;
6216
+ }
6201
6217
  /**
6202
6218
  * Sets the horizontal alignment of text.
6203
6219
 
@@ -6583,12 +6599,6 @@ export declare type TracksSymbolDc = TrackSymbolBaseDc & {
6583
6599
  export declare type UnionTaskParametersDc = FeatureTaskParametersDc & {
6584
6600
  type?: string | null;
6585
6601
  };
6586
- /**
6587
- * Update data source data contract.
6588
- */
6589
- export declare type UpdateDataSourceDc = DataSourceDc & {
6590
- resourceId?: string | null;
6591
- };
6592
6602
  /**
6593
6603
  * Feature object definition for updating.
6594
6604
  */
@@ -7828,7 +7838,7 @@ export interface ValidateExpressionParams {
7828
7838
  /** Layer name. */
7829
7839
  layerName: string;
7830
7840
  }
7831
- export interface GetRasterMetaParams4 {
7841
+ export interface GetRasterMetaParams2 {
7832
7842
  /**
7833
7843
  * Min value for build histogram.
7834
7844
  * @format double
@@ -7947,7 +7957,7 @@ export interface GetProjectsListParams {
7947
7957
  tags?: string[];
7948
7958
  }
7949
7959
  export declare type SetPermissionsBatchBody = ResourceAclDc[];
7950
- export interface DeleteResourcesParams1 {
7960
+ export interface DeleteResourcesParams4 {
7951
7961
  /** Resource names. */
7952
7962
  names?: string[];
7953
7963
  }
@@ -8230,7 +8240,7 @@ export interface StatisticsDbParams {
8230
8240
  */
8231
8241
  types?: AggregationFunction[];
8232
8242
  }
8233
- export interface ClassifyParams4 {
8243
+ export interface ClassifyParams2 {
8234
8244
  /** Layer name. */
8235
8245
  name: string;
8236
8246
  /** Attribute name. */
@@ -8363,10 +8373,6 @@ export interface GetTableListParams {
8363
8373
  acl?: string;
8364
8374
  }
8365
8375
  export declare type SetPermissionsBatchInput = ResourceAclDc[];
8366
- export interface DeleteResourcesParams6 {
8367
- /** Resource names. */
8368
- names?: string[];
8369
- }
8370
8376
  export interface GetTablesInfoParams {
8371
8377
  /** Table names. */
8372
8378
  tableNames?: string[];
@@ -8520,7 +8526,7 @@ export interface GetPublicCapabilitiesParams {
8520
8526
  /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
8521
8527
  AcceptFormats?: string[];
8522
8528
  }
8523
- export interface GetCapabilitiesParams2 {
8529
+ export interface GetCapabilitiesParams7 {
8524
8530
  /** Output format of service metadata. */
8525
8531
  Format?: string;
8526
8532
  /** Must be WMS. */
@@ -412,6 +412,22 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
412
412
  value: function removeDataSource(name) {
413
413
  return this.http.delete("/ds/" + name, null).then(() => {});
414
414
  }
415
+ /**
416
+ * No description
417
+ *
418
+ * @tags DataSource
419
+ * @name TestConnection
420
+ * @operationId DataSourceController_TestConnection
421
+ * @summary Test ds connection.
422
+ * @request POST:/ds/testConnection
423
+ * @response `200` OK
424
+ */
425
+
426
+ }, {
427
+ key: "testConnection",
428
+ value: function testConnection(data) {
429
+ return this.http.post("/ds/testConnection", data).json();
430
+ }
415
431
  }]);
416
432
 
417
433
  return DataSourceService;
@@ -8480,6 +8496,7 @@ function isFeatureLayer(layer) {
8480
8496
  ResourceTypeFilter["ProxyService"] = "ProxyService";
8481
8497
  ResourceTypeFilter["RemoteTileService"] = "RemoteTileService";
8482
8498
  ResourceTypeFilter["File"] = "File";
8499
+ ResourceTypeFilter["DataSource"] = "DataSource";
8483
8500
  })(exports.ResourceTypeFilter || (exports.ResourceTypeFilter = {}));
8484
8501
 
8485
8502
  (function (ResourceTypeLink) {