@evergis/api 3.0.117 → 3.0.119

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
@@ -3,7 +3,7 @@ import { HubConnection } from '@microsoft/signalr';
3
3
  import { Options as KyOptions } from 'ky';
4
4
  import { LoginDc } from './__generated__/data-contracts';
5
5
  import { HttpClient } from './__generated__/HttpClient';
6
- 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 } from './services';
6
+ 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
7
  import { Print } from './services/Print';
8
8
  export declare type ApiParams = {
9
9
  url: string;
@@ -53,6 +53,7 @@ export declare class Api extends EventEmitter {
53
53
  readonly statistic: Statistic;
54
54
  readonly feedback: Feedback;
55
55
  readonly snappingHub: HubConnection | null;
56
+ readonly vectorTiles: VectorTiles;
56
57
  constructor({ url, wsUrl, snappingHubUrl, http, urlPath, httpOptions, }: ApiParams);
57
58
  init({ authParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
58
59
  authParams?: LoginDc;
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams7, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams5, 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: DeleteResourcesParams7): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams5): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams3, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams4, 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: ClassifyParams3): Promise<ClassifyDc>;
30
+ classify(query: ClassifyParams4): Promise<ClassifyDc>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams3, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilities1Params, GetCapabilitiesParams8, 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: GetCapabilitiesParams8): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -208,6 +208,8 @@ export interface AttributeConfigurationDc {
208
208
  columnName?: string;
209
209
  /** Human-friendly name for the attribute. */
210
210
  alias?: string;
211
+ /** Description for the attribute. */
212
+ description?: string;
211
213
  /**
212
214
  * The `StringSubType` provides information about string attribute subtype.
213
215
  *
@@ -305,6 +307,8 @@ export interface AttributeDefinitionDc {
305
307
  type: AttributeType;
306
308
  /** Alias of the attribute. */
307
309
  alias?: string;
310
+ /** Description of the attribute. */
311
+ description?: string;
308
312
  /** If false, the attribute must have non-null value. */
309
313
  isNullable?: boolean;
310
314
  /** Whether the value of the attribute can be edited after the entry was created. */
@@ -4023,14 +4027,36 @@ export declare type StyledLayerServiceConfigurationDc = ServiceConfigurationBase
4023
4027
  style: StyleDc;
4024
4028
  baseServiceName: string;
4025
4029
  };
4030
+ /**
4031
+ * Provides properties overrides svg attributes.
4032
+ */
4033
+ export interface SvgParameterDc {
4034
+ /**
4035
+ * Number parameter of a symbol. The parameter can be represented as a simple number, or
4036
+ * as an object with a "type" parameter specified.
4037
+ */
4038
+ fillColor?: ParameterDcColor;
4039
+ /**
4040
+ * Number parameter of a symbol. The parameter can be represented as a simple number, or
4041
+ * as an object with a "type" parameter specified.
4042
+ */
4043
+ strokeColor?: ParameterDcColor;
4044
+ /** The width of the outline of the circle in pixels. */
4045
+ strokeWidth?: CalculatedParameterDc;
4046
+ /** Id of the svg element. */
4047
+ id?: string;
4048
+ /** Element type. */
4049
+ type?: string;
4050
+ }
4026
4051
  /**
4027
4052
  * Svg point symbol.
4028
4053
  */
4029
4054
  export declare type SvgPointSymbolDc = SymbolDc & {
4030
4055
  type?: string;
4031
4056
  data?: string;
4032
- width?: CalculatedParameterDc;
4033
- height?: CalculatedParameterDc;
4057
+ background?: SvgParameterDc;
4058
+ figure?: SvgParameterDc;
4059
+ size?: CalculatedParameterDc;
4034
4060
  offset?: CalculatedParameterDc[];
4035
4061
  angle?: CalculatedParameterDc;
4036
4062
  };
@@ -5199,6 +5225,8 @@ export interface GetFeaturesParams {
5199
5225
  * in descending order.
5200
5226
  */
5201
5227
  sort?: string[];
5228
+ /** Comma separated list of features ids. */
5229
+ ids?: string[];
5202
5230
  /** If set to true, the geometry will not be returned for features. */
5203
5231
  withGeom?: boolean;
5204
5232
  /** Comma separated list of attributes to be returned. If not set, all attributes are returned. */
@@ -5653,7 +5681,7 @@ export interface GetProjectsListParams {
5653
5681
  tags?: string[];
5654
5682
  }
5655
5683
  export declare type SetPermissionsBatchBody = ResourceAclDc[];
5656
- export interface DeleteResourcesParams7 {
5684
+ export interface DeleteResourcesParams5 {
5657
5685
  /** Resource names. */
5658
5686
  names?: string[];
5659
5687
  }
@@ -5889,7 +5917,7 @@ export interface StatisticsDbParams {
5889
5917
  */
5890
5918
  types?: AggregationFunction[];
5891
5919
  }
5892
- export interface ClassifyParams3 {
5920
+ export interface ClassifyParams4 {
5893
5921
  /** Layer name. */
5894
5922
  name?: string;
5895
5923
  /** Attribute name. */
@@ -6117,7 +6145,7 @@ export interface GetPublicCapabilitiesParams {
6117
6145
  /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
6118
6146
  AcceptFormats?: string[];
6119
6147
  }
6120
- export interface GetCapabilitiesParams3 {
6148
+ export interface GetCapabilitiesParams8 {
6121
6149
  /** Output format of service metadata. */
6122
6150
  Format?: string;
6123
6151
  /** Must be WMS. */
@@ -5860,6 +5860,80 @@ let Feedback = /*#__PURE__*/function (_FeedbackService) {
5860
5860
  return Feedback;
5861
5861
  }(FeedbackService);
5862
5862
 
5863
+ const _excluded$5 = ["name", "z", "x", "y"];
5864
+ /**
5865
+ * @title Spatial Processing Core API
5866
+ * @version 1.0.0
5867
+ * @baseUrl /sp
5868
+ */
5869
+
5870
+ let VectorTileService = /*#__PURE__*/function (_Service) {
5871
+ _inherits(VectorTileService, _Service);
5872
+
5873
+ var _super = /*#__PURE__*/_createSuper(VectorTileService);
5874
+
5875
+ function VectorTileService() {
5876
+ _classCallCheck(this, VectorTileService);
5877
+
5878
+ return _super.apply(this, arguments);
5879
+ }
5880
+
5881
+ _createClass(VectorTileService, [{
5882
+ key: "getVectorTile",
5883
+ value:
5884
+ /**
5885
+ * No description
5886
+ *
5887
+ * @tags VectorTileService
5888
+ * @name GetVectorTile
5889
+ * @operationId VectorTileServiceController_GetVectorTile
5890
+ * @summary Get vector tile from visible project layers or single layer.
5891
+ * @request GET:/vt/{name}/{z}/{x}/{y}.pbf
5892
+ * @response `200` Success
5893
+ */
5894
+ function getVectorTile(_ref) {
5895
+ let {
5896
+ name,
5897
+ z,
5898
+ x,
5899
+ y
5900
+ } = _ref,
5901
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5902
+
5903
+ return this.http.get("/vt/" + name + "/" + z + "/" + x + "/" + y + ".pbf", query).then(() => {});
5904
+ }
5905
+ }]);
5906
+
5907
+ return VectorTileService;
5908
+ }(Service);
5909
+
5910
+ let VectorTiles = /*#__PURE__*/function (_VectorTileService) {
5911
+ _inherits(VectorTiles, _VectorTileService);
5912
+
5913
+ var _super = /*#__PURE__*/_createSuper(VectorTiles);
5914
+
5915
+ function VectorTiles() {
5916
+ _classCallCheck(this, VectorTiles);
5917
+
5918
+ return _super.apply(this, arguments);
5919
+ }
5920
+
5921
+ _createClass(VectorTiles, [{
5922
+ key: "getVt",
5923
+ value: function getVt(name, z, x, y, isProject) {
5924
+ return this.getVectorTile({
5925
+ name,
5926
+ z,
5927
+ x,
5928
+ y,
5929
+ isProject
5930
+ });
5931
+ }
5932
+ }]);
5933
+
5934
+ return VectorTiles;
5935
+ }(VectorTileService);
5936
+
5863
5937
  /**
5864
5938
  * @title Spatial Processing Core API
5865
5939
  * @version 1.0.0
@@ -6072,6 +6146,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6072
6146
  _this.iceRouter = new IceRouter(_this.http);
6073
6147
  _this.statistic = new Statistic(_this.http);
6074
6148
  _this.feedback = new Feedback(_this.http);
6149
+ _this.vectorTiles = new VectorTiles(_this.http);
6075
6150
  _this.names = new Names({
6076
6151
  account: _this.account
6077
6152
  });
@@ -6236,7 +6311,7 @@ let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
6236
6311
  return EvergisTileLayer;
6237
6312
  }(TileLayer.TileLayer);
6238
6313
 
6239
- const _excluded$5 = ["name", "style", "condition", "dataFilterId"];
6314
+ const _excluded$6 = ["name", "style", "condition", "dataFilterId"];
6240
6315
  let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6241
6316
  _inherits(EvergisDynamicLayer, _DynamicLayer);
6242
6317
 
@@ -6251,7 +6326,7 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6251
6326
  condition,
6252
6327
  dataFilterId
6253
6328
  } = _ref,
6254
- layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
6329
+ layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
6255
6330
 
6256
6331
  _classCallCheck(this, EvergisDynamicLayer);
6257
6332
 
@@ -6835,6 +6910,7 @@ exports.Statistic = Statistic;
6835
6910
  exports.Styles = Styles;
6836
6911
  exports.Tables = Tables;
6837
6912
  exports.Tools = Tools;
6913
+ exports.VectorTiles = VectorTiles;
6838
6914
  exports.addSubDomainToLocation = addSubDomainToLocation;
6839
6915
  exports.errorHandler = errorHandler;
6840
6916
  exports.formDataFromFile = formDataFromFile;