@evergis/api 3.0.74 → 3.0.77

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,42 @@
1
+ import { CreatePayload, FilterCreationResponseDc, UpdatePayload } from './data-contracts';
2
+ import { Service } from './Service';
3
+ /**
4
+ * @title Spatial Processing Core API
5
+ * @version v0.6.0
6
+ * @baseUrl /sp
7
+ */
8
+ export declare class FiltersService extends Service {
9
+ /**
10
+ * No description
11
+ *
12
+ * @tags FiltersService
13
+ * @name Get
14
+ * @operationId FiltersServiceController_Get
15
+ * @summary Returns the filter by its id.
16
+ * @request GET:/filters/{id}
17
+ * @response `200` Success
18
+ */
19
+ get(id: string): Promise<string>;
20
+ /**
21
+ * No description
22
+ *
23
+ * @tags FiltersService
24
+ * @name Update
25
+ * @operationId FiltersServiceController_Update
26
+ * @summary Replaces a filter and gives it a new id.
27
+ * @request POST:/filters/{id}
28
+ * @response `200` Success
29
+ */
30
+ update(id: string, data: UpdatePayload): Promise<FilterCreationResponseDc>;
31
+ /**
32
+ * No description
33
+ *
34
+ * @tags FiltersService
35
+ * @name Create
36
+ * @operationId FiltersServiceController_Create
37
+ * @summary Creates a new filter.
38
+ * @request POST:/filters
39
+ * @response `200` Success
40
+ */
41
+ create(data: CreatePayload): Promise<FilterCreationResponseDc>;
42
+ }
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams6, StatisticsDbParams, StatisticsDc } 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
@@ -24,8 +24,19 @@ export declare class StatisticService extends Service {
24
24
  * @name Classify
25
25
  * @operationId StatisticController_Classify
26
26
  * @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
27
- * @request GET:/classify
27
+ * @request GET:/statistics/classify
28
28
  * @response `200` Success
29
29
  */
30
30
  classify(query: ClassifyParams6): Promise<ClassifyDc>;
31
+ /**
32
+ * No description
33
+ *
34
+ * @tags Statistic
35
+ * @name SumOfProduct
36
+ * @operationId StatisticController_SumOfProduct
37
+ * @summary Sum of product.
38
+ * @request GET:/statistics/sumOfProduct
39
+ * @response `200` Success
40
+ */
41
+ sumOfProduct(query: SumOfProductParams): Promise<StatisticsDc>;
31
42
  }
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, AddPermissionsInput, BulkOperationResultDc, CreateTablePayload, DeleteResourcesParams9, DeleteTableDataParams, FileUploadResponse, GetTableDataParams, GetTableListParams, GetUniqueDataRowsParams, IListResponse, ListResponseIEnumerable1, MapRemoteTableParams, MapRemoteTablePayload, MapTableParams, MapTablePayload, MapViewParams, MapViewPayload, ResourceDependenciesDc, SetPermissionsBatchInput, SetPermissionsInput, SetPreviewInput, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTablePayload, WriteTableDataPayload } from './data-contracts';
1
+ import { AccessControlListDc, AddPermissionsInput, BulkOperationResultDc, CreateTablePayload, DeleteResourcesParams1, DeleteTableDataParams, FileUploadResponse, GetTableDataParams, GetTableListParams, GetUniqueDataRowsParams, IListResponse, ListResponseIEnumerable1, MapRemoteTableParams, MapRemoteTablePayload, MapTableParams, MapTablePayload, MapViewParams, MapViewPayload, ResourceDependenciesDc, SetPermissionsBatchInput, SetPermissionsInput, SetPreviewInput, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTablePayload, 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: DeleteResourcesParams9): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams1): 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, GetCapabilitiesParams5, 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: GetCapabilitiesParams5): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -1762,6 +1762,20 @@ export interface FilterCopyTaskParametersDc {
1762
1762
  /** Storage that is to be used as a target for writing the task result. */
1763
1763
  target: BaseTaskDataStorageDc;
1764
1764
  }
1765
+ /**
1766
+ * Server response for the creation of a filter in filter service.
1767
+ */
1768
+ export interface FilterCreationResponseDc {
1769
+ /** Id of the filter. */
1770
+ id?: string;
1771
+ }
1772
+ /**
1773
+ * Provides filter data contract.
1774
+ */
1775
+ export interface FilterDc {
1776
+ /** Filter string to save. */
1777
+ filterString: string;
1778
+ }
1765
1779
  /**
1766
1780
  * Sets whether font should be styled.
1767
1781
  */
@@ -2158,6 +2172,8 @@ export interface ImagePointSymbolDc {
2158
2172
  export interface ImportDataSchema {
2159
2173
  /** List of layers in the data-set. */
2160
2174
  layers: ImportLayerDataSchema[];
2175
+ /** Importing file type. */
2176
+ type: string;
2161
2177
  }
2162
2178
  /**
2163
2179
  * Schema of a layer in an imported file.
@@ -2346,6 +2362,8 @@ export interface LayerModelDc {
2346
2362
  condition?: string;
2347
2363
  /** Id of the override style to apply to the layer. If not set, the layer original style is used. */
2348
2364
  styleId?: string;
2365
+ /** Id of the override data filter to apply to the layer. If not set, the layer original data filter is used. */
2366
+ dataFilterId?: string;
2349
2367
  }
2350
2368
  /**
2351
2369
  * The description of the layer service as a server task data storage.
@@ -5668,6 +5686,14 @@ export interface FeedbackParams {
5668
5686
  /** Message text. */
5669
5687
  Message?: string;
5670
5688
  }
5689
+ /**
5690
+ * Provides filter data contract.
5691
+ */
5692
+ export declare type UpdatePayload = FilterDc;
5693
+ /**
5694
+ * Provides filter data contract.
5695
+ */
5696
+ export declare type CreatePayload = FilterDc;
5671
5697
  export interface GeocodeParams {
5672
5698
  /** Input address. */
5673
5699
  address?: string;
@@ -5829,6 +5855,8 @@ export declare type UpdateCompositeServicePayload = CompositeServiceConfiguratio
5829
5855
  export interface GetFeaturesParams {
5830
5856
  /** Sets features filtering query. */
5831
5857
  query?: string;
5858
+ /** Id of override data filter to apply to the layer. If not set, the default filter is used. */
5859
+ dataFilterId?: string;
5832
5860
  /**
5833
5861
  * Features count have to skip.
5834
5862
  * @format int32
@@ -5979,6 +6007,8 @@ export interface GetLayerImageParams {
5979
6007
  opacity?: number;
5980
6008
  /** Id of the override style to apply to the layer. If not set, the layer original style is used. */
5981
6009
  styleId?: string;
6010
+ /** Id of override data filter to apply to the layer. If not set, the default filter is used. */
6011
+ dataFilterId?: string;
5982
6012
  /** Full name of the layer. */
5983
6013
  name: string;
5984
6014
  }
@@ -6068,6 +6098,8 @@ export interface GetByGeometryGetParams {
6068
6098
  query?: string;
6069
6099
  /** Id of the override style to apply to the layer. If not set, the layer original style is used. */
6070
6100
  styleId?: string;
6101
+ /** Id of the override data filter to apply to the layer. If not set, the layer original data filter is used. */
6102
+ dataFilterId?: string;
6071
6103
  /** The name of the layer. */
6072
6104
  name: string;
6073
6105
  }
@@ -6202,6 +6234,8 @@ export interface SelectFeaturesParams {
6202
6234
  query?: string[];
6203
6235
  /** Id of the override style to apply to the layer. If not set, the layer original style is used. */
6204
6236
  styles?: string[];
6237
+ /** Id of the data filter to override data filter of the layer. If not set, the layer original data filter is used. */
6238
+ filters?: string[];
6205
6239
  /** If set to true, the response will include the specific symbol for each feature. */
6206
6240
  includeSymbols?: boolean;
6207
6241
  }
@@ -6544,6 +6578,14 @@ export interface ClassifyParams6 {
6544
6578
  */
6545
6579
  attributeType?: ClassifyAttributeType;
6546
6580
  }
6581
+ export interface SumOfProductParams {
6582
+ /** Layer name. */
6583
+ name?: string;
6584
+ /** Attributes to aggregate. */
6585
+ attributes?: string[];
6586
+ /** Layer condition. */
6587
+ condition?: string;
6588
+ }
6547
6589
  /**
6548
6590
  * Feature layer rendering style.
6549
6591
  */
@@ -6599,7 +6641,7 @@ export interface GetTableListParams {
6599
6641
  */
6600
6642
  export declare type CreateTablePayload = DetailedTableInfoDc | ResourceInfoDc | TableInfoDc;
6601
6643
  export declare type SetPermissionsBatchInput = ResourceAclDc[];
6602
- export interface DeleteResourcesParams9 {
6644
+ export interface DeleteResourcesParams1 {
6603
6645
  /** Resource names. */
6604
6646
  names?: string[];
6605
6647
  }
@@ -6704,7 +6746,7 @@ export interface GetCapabilitiesParams {
6704
6746
  /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
6705
6747
  AcceptFormats?: string[];
6706
6748
  }
6707
- export interface GetCapabilitiesParams3 {
6749
+ export interface GetCapabilitiesParams5 {
6708
6750
  /** Output format of service metadata. */
6709
6751
  Format?: string;
6710
6752
  /** Must be WMS. */
@@ -843,12 +843,13 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
843
843
 
844
844
  var _super = /*#__PURE__*/_createSuper(Notification);
845
845
 
846
- function Notification(http) {
846
+ function Notification(http, api) {
847
847
  var _this;
848
848
 
849
849
  _classCallCheck(this, Notification);
850
850
 
851
851
  _this = _super.call(this, http);
852
+ _this.api = api;
852
853
  _this.MAX_WS_RECONNECT_TRIES = 10;
853
854
  _this.reconnectTries = 0;
854
855
  _this.subscriptions = [];
@@ -935,7 +936,7 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
935
936
  value: async function subscribe(tag) {
936
937
  this.subscriptions.push(tag);
937
938
  setTimeout(() => {
938
- if (this.subscriptions.length) {
939
+ if (!this.api.isShared && this.subscriptions.length) {
939
940
  this.subscribeListOperation(this.subscriptions);
940
941
  }
941
942
 
@@ -5548,14 +5549,30 @@ let StatisticService = /*#__PURE__*/function (_Service) {
5548
5549
  * @name Classify
5549
5550
  * @operationId StatisticController_Classify
5550
5551
  * @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
5551
- * @request GET:/classify
5552
+ * @request GET:/statistics/classify
5552
5553
  * @response `200` Success
5553
5554
  */
5554
5555
 
5555
5556
  }, {
5556
5557
  key: "classify",
5557
5558
  value: function classify(query) {
5558
- return this.http.get("/classify", query).json();
5559
+ return this.http.get("/statistics/classify", query).json();
5560
+ }
5561
+ /**
5562
+ * No description
5563
+ *
5564
+ * @tags Statistic
5565
+ * @name SumOfProduct
5566
+ * @operationId StatisticController_SumOfProduct
5567
+ * @summary Sum of product.
5568
+ * @request GET:/statistics/sumOfProduct
5569
+ * @response `200` Success
5570
+ */
5571
+
5572
+ }, {
5573
+ key: "sumOfProduct",
5574
+ value: function sumOfProduct(query) {
5575
+ return this.http.get("/statistics/sumOfProduct", query).json();
5559
5576
  }
5560
5577
  }]);
5561
5578
 
@@ -5879,7 +5896,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5879
5896
  _this.accountPreview = new AccountPreview(_this.http, _this.account);
5880
5897
  _this.bulk = new BulkOperations(_this.http);
5881
5898
  _this.security = new Security(_this.http, _this.account);
5882
- _this.notification = new Notification(_this.http);
5899
+ _this.notification = new Notification(_this.http, _assertThisInitialized(_this));
5883
5900
  _this.scheduler = new Scheduler(_this.http);
5884
5901
  _this.file = new FileUpload(_this.http);
5885
5902
  _this.import = new Import(_this.http);