@evergis/api 3.0.196 → 3.0.198

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.
@@ -0,0 +1,31 @@
1
+ import { DataSourceDc, GetDataSourcesListParams, PagedListDataSourceDc } from './data-contracts';
2
+ import { Service } from './Service';
3
+ /**
4
+ * @title Spatial Processing Core API
5
+ * @version 1.5.1.0
6
+ * @baseUrl /sp
7
+ */
8
+ export declare class DataSourceService extends Service {
9
+ /**
10
+ * No description
11
+ *
12
+ * @tags DataSource
13
+ * @name GetDataSourcesList
14
+ * @operationId DataSourceController_GetDataSourcesList
15
+ * @summary Returns list of the available data sources.
16
+ * @request GET:/ds
17
+ * @response `200` OK
18
+ */
19
+ getDataSourcesList(query: GetDataSourcesListParams): Promise<PagedListDataSourceDc>;
20
+ /**
21
+ * No description
22
+ *
23
+ * @tags DataSource
24
+ * @name GetDataSource
25
+ * @operationId DataSourceController_GetDataSource
26
+ * @summary Get data source by name.
27
+ * @request GET:/ds/{name}
28
+ * @response `200` OK
29
+ */
30
+ getDataSource(name: string): Promise<DataSourceDc>;
31
+ }
@@ -16,7 +16,7 @@ export declare class EqlService extends Service {
16
16
  * @request POST:/eql/query
17
17
  * @response `200` OK
18
18
  */
19
- getQueryResult(data: EqlRequestDc): Promise<void>;
19
+ getQueryResult(data: EqlRequestDc): Promise<Record<string, any>[]>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -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, GetRasterMetaParams9, 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, GetRasterMetaParams7, 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 }: GetRasterMetaParams9): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
592
+ getRasterMeta({ name, id, ...query }: GetRasterMetaParams7): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
593
593
  /**
594
594
  * No description
595
595
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams8, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams9, 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: ClassifyParams8): Promise<ClassifyDc>;
41
+ classify(query: ClassifyParams9): Promise<ClassifyDc>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams5, 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, DeleteResourcesParams3, 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: DeleteResourcesParams5): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams3): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -419,6 +419,8 @@ export interface AttributeConfigurationDc {
419
419
  attributeSelectorType?: AttributeSelectorType;
420
420
  /** Values range. */
421
421
  ranges?: ValuesRange[];
422
+ /** Information about an attribute icon. */
423
+ icon?: AttributeIconDc;
422
424
  }
423
425
  /**
424
426
  * Information about an attribute.
@@ -482,6 +484,9 @@ export interface AttributeDefinitionDc {
482
484
  isCalculated?: boolean;
483
485
  /** Provides attributes format definition settings. */
484
486
  stringFormat?: AttributeFormatDefinitionDc;
487
+ sr?: ISpatialReference;
488
+ /** Information about an attribute icon. */
489
+ icon?: AttributeIconDc;
485
490
  }
486
491
  /**
487
492
  * Information about an attribute distinct.
@@ -587,6 +592,46 @@ export interface AttributeFormatDefinitionDc {
587
592
  */
588
593
  rounding?: number;
589
594
  }
595
+ /**
596
+ * Information about an attribute icon.
597
+ */
598
+ export interface AttributeIconDc {
599
+ /**
600
+ *
601
+ *
602
+ * Unknown
603
+ *
604
+ * Icon
605
+ *
606
+ * PNG
607
+ *
608
+ * SVG
609
+ */
610
+ type?: AttributeIconType;
611
+ /** Icon name from EverGIS icon library. */
612
+ iconName?: string;
613
+ /** URL. */
614
+ url?: string;
615
+ /** Icon resource id. */
616
+ resourceId?: string;
617
+ }
618
+ /**
619
+ *
620
+
621
+ Unknown
622
+
623
+ Icon
624
+
625
+ PNG
626
+
627
+ SVG
628
+ */
629
+ export declare enum AttributeIconType {
630
+ Unknown = "Unknown",
631
+ Icon = "Icon",
632
+ PNG = "PNG",
633
+ SVG = "SVG"
634
+ }
590
635
  /**
591
636
  *
592
637
 
@@ -1560,6 +1605,49 @@ export declare type DashedBrushDc = StrokeBrushDc & {
1560
1605
  intervals?: ParameterDcDoubleArray;
1561
1606
  phase?: number;
1562
1607
  };
1608
+ /**
1609
+ * Data source data contract.
1610
+ */
1611
+ export interface DataSourceDc {
1612
+ /** Name. */
1613
+ name?: string;
1614
+ /** Alias. */
1615
+ alias?: string;
1616
+ /** Description. */
1617
+ description?: string;
1618
+ /**
1619
+ * Data source type.
1620
+ *
1621
+ * Postgres
1622
+ */
1623
+ type?: DataSourceType;
1624
+ /** Connection string. */
1625
+ connectionString?: string;
1626
+ /** Schema. */
1627
+ schema?: string;
1628
+ /**
1629
+ * Date and time when the remote connection was created.
1630
+ * @format date-time
1631
+ */
1632
+ created?: string;
1633
+ /**
1634
+ * Date and time when the remote connection was last modified.
1635
+ * @format date-time
1636
+ */
1637
+ modified?: string;
1638
+ /** Login of the owner. */
1639
+ owner?: string;
1640
+ /** Access control list for a security object. */
1641
+ acl?: AccessControlListDc;
1642
+ }
1643
+ /**
1644
+ * Data source type.
1645
+
1646
+ Postgres
1647
+ */
1648
+ export declare enum DataSourceType {
1649
+ Postgres = "Postgres"
1650
+ }
1563
1651
  /**
1564
1652
  * Configuration of a table for feature layer.
1565
1653
  */
@@ -3212,17 +3300,15 @@ export interface ListResourcesDto {
3212
3300
  */
3213
3301
  filter?: string;
3214
3302
  /**
3215
- *
3303
+ * Filter exists resources by owner.
3216
3304
  *
3217
3305
  * My
3218
3306
  *
3219
3307
  * Shared
3220
3308
  *
3221
3309
  * Public
3222
- *
3223
- * All
3224
3310
  */
3225
- ownerFilter?: OwnerFilter;
3311
+ ownerFilter?: OwnerFilterDc;
3226
3312
  /** Resources types filter. */
3227
3313
  resourceTypes?: CatalogResourceType[];
3228
3314
  /** Resources subtypes filter. */
@@ -3412,21 +3498,18 @@ export declare type OverlayTaskParametersDc = FeatureTaskParametersDc & {
3412
3498
  toolLayer?: LayerTaskDataStorageDc;
3413
3499
  };
3414
3500
  /**
3415
- *
3501
+ * Filter exists resources by owner.
3416
3502
 
3417
3503
  My
3418
3504
 
3419
3505
  Shared
3420
3506
 
3421
3507
  Public
3422
-
3423
- All
3424
3508
  */
3425
- export declare enum OwnerFilter {
3509
+ export declare enum OwnerFilterDc {
3426
3510
  My = "My",
3427
3511
  Shared = "Shared",
3428
- Public = "Public",
3429
- All = "All"
3512
+ Public = "Public"
3430
3513
  }
3431
3514
  /**
3432
3515
  * Features list definition.
@@ -3449,6 +3532,15 @@ export interface PagedListConfigDc {
3449
3532
  limit?: number;
3450
3533
  items?: ConfigDc[];
3451
3534
  }
3535
+ export interface PagedListDataSourceDc {
3536
+ /** @format int64 */
3537
+ totalCount?: number;
3538
+ /** @format int32 */
3539
+ offset?: number;
3540
+ /** @format int32 */
3541
+ limit?: number;
3542
+ items?: DataSourceDc[];
3543
+ }
3452
3544
  export interface PagedListExtendedUserInfoDc {
3453
3545
  /** @format int64 */
3454
3546
  totalCount?: number;
@@ -6860,6 +6952,18 @@ export interface RemoveConfigurationParams {
6860
6952
  /** URL path. */
6861
6953
  urlPath: string;
6862
6954
  }
6955
+ export interface GetDataSourcesListParams {
6956
+ /**
6957
+ * Objects limit per response.
6958
+ * @format int32
6959
+ */
6960
+ offset?: number;
6961
+ /**
6962
+ * Objects count have to skip. Default limit sets in 20 object.
6963
+ * @format int32
6964
+ */
6965
+ limit?: number;
6966
+ }
6863
6967
  export interface SetLayerParameterValueParams {
6864
6968
  /** Layer name. */
6865
6969
  layerName?: string;
@@ -7505,7 +7609,7 @@ export interface ValidateExpressionParams {
7505
7609
  /** Layer name. */
7506
7610
  layerName: string;
7507
7611
  }
7508
- export interface GetRasterMetaParams9 {
7612
+ export interface GetRasterMetaParams7 {
7509
7613
  /**
7510
7614
  * Min value for build histogram.
7511
7615
  * @format double
@@ -7915,7 +8019,7 @@ export interface StatisticsDbParams {
7915
8019
  */
7916
8020
  types?: AggregationFunction[];
7917
8021
  }
7918
- export interface ClassifyParams8 {
8022
+ export interface ClassifyParams9 {
7919
8023
  /** Layer name. */
7920
8024
  name: string;
7921
8025
  /** Attribute name. */
@@ -8048,7 +8152,7 @@ export interface GetTableListParams {
8048
8152
  acl?: string;
8049
8153
  }
8050
8154
  export declare type SetPermissionsBatchInput = ResourceAclDc[];
8051
- export interface DeleteResourcesParams5 {
8155
+ export interface DeleteResourcesParams3 {
8052
8156
  /** Resource names. */
8053
8157
  names?: string[];
8054
8158
  }
@@ -2076,7 +2076,7 @@ let EqlService = /*#__PURE__*/function (_Service) {
2076
2076
  * @response `200` OK
2077
2077
  */
2078
2078
  function getQueryResult(data) {
2079
- return this.http.post("/eql/query", data).then(() => {});
2079
+ return this.http.post("/eql/query", data).json();
2080
2080
  }
2081
2081
  /**
2082
2082
  * No description
@@ -8068,6 +8068,13 @@ function isFeatureLayer(layer) {
8068
8068
  AggregationFunction["DividedSum"] = "DividedSum";
8069
8069
  })(exports.AggregationFunction || (exports.AggregationFunction = {}));
8070
8070
 
8071
+ (function (AttributeIconType) {
8072
+ AttributeIconType["Unknown"] = "Unknown";
8073
+ AttributeIconType["Icon"] = "Icon";
8074
+ AttributeIconType["PNG"] = "PNG";
8075
+ AttributeIconType["SVG"] = "SVG";
8076
+ })(exports.AttributeIconType || (exports.AttributeIconType = {}));
8077
+
8071
8078
  (function (AttributeSelectorType) {
8072
8079
  AttributeSelectorType["None"] = "None";
8073
8080
  AttributeSelectorType["SelectFromHandBook"] = "SelectFromHandBook";
@@ -8147,6 +8154,10 @@ function isFeatureLayer(layer) {
8147
8154
  ConfigurationErrorEnum["InvalidTableReferenceConfiguration"] = "InvalidTableReferenceConfiguration";
8148
8155
  })(exports.ConfigurationErrorEnum || (exports.ConfigurationErrorEnum = {}));
8149
8156
 
8157
+ (function (DataSourceType) {
8158
+ DataSourceType["Postgres"] = "Postgres";
8159
+ })(exports.DataSourceType || (exports.DataSourceType = {}));
8160
+
8150
8161
  (function (ErrorDetailsType) {
8151
8162
  ErrorDetailsType["ResourceLimitExceeded"] = "ResourceLimitExceeded";
8152
8163
  ErrorDetailsType["ResourceNotFound"] = "ResourceNotFound";
@@ -8265,12 +8276,11 @@ function isFeatureLayer(layer) {
8265
8276
  Operation["SymDifference"] = "symDifference";
8266
8277
  })(exports.Operation || (exports.Operation = {}));
8267
8278
 
8268
- (function (OwnerFilter) {
8269
- OwnerFilter["My"] = "My";
8270
- OwnerFilter["Shared"] = "Shared";
8271
- OwnerFilter["Public"] = "Public";
8272
- OwnerFilter["All"] = "All";
8273
- })(exports.OwnerFilter || (exports.OwnerFilter = {}));
8279
+ (function (OwnerFilterDc) {
8280
+ OwnerFilterDc["My"] = "My";
8281
+ OwnerFilterDc["Shared"] = "Shared";
8282
+ OwnerFilterDc["Public"] = "Public";
8283
+ })(exports.OwnerFilterDc || (exports.OwnerFilterDc = {}));
8274
8284
 
8275
8285
  (function (PbfSchema) {
8276
8286
  PbfSchema["XYZ"] = "xyz";