@evergis/api 3.0.75 → 3.0.78
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/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +14 -3
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +103 -7
- package/dist/api.cjs.development.js +29 -5
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +44 -6
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Notification.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, AddPermissionsBody, BulkOperationResultDc, CompositeServiceInfoDc, CreateProjectPayload, CreateShareProjectPayload,
|
|
1
|
+
import { AccessControlListDc, AddPermissionsBody, BulkOperationResultDc, CompositeServiceInfoDc, CreateProjectPayload, CreateShareProjectPayload, DeleteResourcesParams5, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsListParams, IListResponse, ListResponseProjectInfoDc, ResourceDependenciesDc, ResourceInfoDc, ServiceInfoDc, SetPermissionsBatchBody, SetPermissionsBody, SetPreviewBody, SharedProjectInfoDc, UpdateProjectPayload } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -82,7 +82,7 @@ export declare class ProjectsService extends Service {
|
|
|
82
82
|
* @request DELETE:/projects
|
|
83
83
|
* @response `200` Success
|
|
84
84
|
*/
|
|
85
|
-
deleteResources(query:
|
|
85
|
+
deleteResources(query: DeleteResourcesParams5): Promise<BulkOperationResultDc[]>;
|
|
86
86
|
/**
|
|
87
87
|
* No description
|
|
88
88
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassifyDc,
|
|
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
|
-
classify(query:
|
|
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,
|
|
1
|
+
import { AccessControlListDc, AddPermissionsInput, BulkOperationResultDc, CreateTablePayload, DeleteResourcesParams4, 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:
|
|
52
|
+
deleteResources(query: DeleteResourcesParams4): Promise<BulkOperationResultDc[]>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetCapabilities1Params,
|
|
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:
|
|
19
|
+
getCapabilities(query: GetCapabilitiesParams8): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* No description
|
|
22
22
|
*
|
|
@@ -21,6 +21,14 @@ export interface AggregateTaskParametersDc {
|
|
|
21
21
|
source: BaseTaskDataStorageDc;
|
|
22
22
|
/** Storage that is to be used as a target for writing the task result. */
|
|
23
23
|
target: BaseTaskDataStorageDc;
|
|
24
|
+
/**
|
|
25
|
+
* Save mode (create or update).
|
|
26
|
+
*
|
|
27
|
+
* create
|
|
28
|
+
*
|
|
29
|
+
* update
|
|
30
|
+
*/
|
|
31
|
+
saveMode: SaveMode;
|
|
24
32
|
}
|
|
25
33
|
/**
|
|
26
34
|
* Describes data contract of aggregation result.
|
|
@@ -487,6 +495,14 @@ export interface AvailabilityAreaTaskDc {
|
|
|
487
495
|
source: BaseTaskDataStorageDc;
|
|
488
496
|
/** Storage that is to be used as a target for writing the task result. */
|
|
489
497
|
target: BaseTaskDataStorageDc;
|
|
498
|
+
/**
|
|
499
|
+
* Save mode (create or update).
|
|
500
|
+
*
|
|
501
|
+
* create
|
|
502
|
+
*
|
|
503
|
+
* update
|
|
504
|
+
*/
|
|
505
|
+
saveMode: SaveMode;
|
|
490
506
|
}
|
|
491
507
|
/**
|
|
492
508
|
* Simply Base64 string.
|
|
@@ -572,6 +588,14 @@ export interface BufferTaskParametersDc {
|
|
|
572
588
|
source: BaseTaskDataStorageDc;
|
|
573
589
|
/** Storage that is to be used as a target for writing the task result. */
|
|
574
590
|
target: BaseTaskDataStorageDc;
|
|
591
|
+
/**
|
|
592
|
+
* Save mode (create or update).
|
|
593
|
+
*
|
|
594
|
+
* create
|
|
595
|
+
*
|
|
596
|
+
* update
|
|
597
|
+
*/
|
|
598
|
+
saveMode: SaveMode;
|
|
575
599
|
}
|
|
576
600
|
/**
|
|
577
601
|
* Provides set resources bulk operation status.
|
|
@@ -642,12 +666,15 @@ naturalBreaks
|
|
|
642
666
|
equalInterval
|
|
643
667
|
|
|
644
668
|
quantile
|
|
669
|
+
|
|
670
|
+
unique
|
|
645
671
|
*/
|
|
646
672
|
export declare enum ClassificationType {
|
|
647
673
|
None = "none",
|
|
648
674
|
NaturalBreaks = "naturalBreaks",
|
|
649
675
|
EqualInterval = "equalInterval",
|
|
650
|
-
Quantile = "quantile"
|
|
676
|
+
Quantile = "quantile",
|
|
677
|
+
Distinct = "unique"
|
|
651
678
|
}
|
|
652
679
|
/**
|
|
653
680
|
* Type of attribute.
|
|
@@ -655,10 +682,13 @@ export declare enum ClassificationType {
|
|
|
655
682
|
decimal
|
|
656
683
|
|
|
657
684
|
dateTime
|
|
685
|
+
|
|
686
|
+
text
|
|
658
687
|
*/
|
|
659
688
|
export declare enum ClassifyAttributeType {
|
|
660
689
|
Decimal = "decimal",
|
|
661
|
-
DateTime = "dateTime"
|
|
690
|
+
DateTime = "dateTime",
|
|
691
|
+
Text = "text"
|
|
662
692
|
}
|
|
663
693
|
/**
|
|
664
694
|
* Classification result.
|
|
@@ -977,13 +1007,22 @@ export interface CopyResourceResultDc {
|
|
|
977
1007
|
* Server task that copies the objects from one storage to another.
|
|
978
1008
|
*/
|
|
979
1009
|
export interface CopyTaskParametersDc {
|
|
1010
|
+
type?: string;
|
|
1011
|
+
condition?: string;
|
|
980
1012
|
/** Mapping of source attribute fields and target attribute fields. */
|
|
981
1013
|
attributeMapping?: Record<string, string | null>;
|
|
982
|
-
type?: string;
|
|
983
1014
|
/** Storage that is to be used as a data source for the task. */
|
|
984
1015
|
source: BaseTaskDataStorageDc;
|
|
985
1016
|
/** Storage that is to be used as a target for writing the task result. */
|
|
986
1017
|
target: BaseTaskDataStorageDc;
|
|
1018
|
+
/**
|
|
1019
|
+
* Save mode (create or update).
|
|
1020
|
+
*
|
|
1021
|
+
* create
|
|
1022
|
+
*
|
|
1023
|
+
* update
|
|
1024
|
+
*/
|
|
1025
|
+
saveMode: SaveMode;
|
|
987
1026
|
}
|
|
988
1027
|
/**
|
|
989
1028
|
* Data contract for create new role.
|
|
@@ -1694,6 +1733,14 @@ export interface FeatureTaskParametersDc {
|
|
|
1694
1733
|
source: BaseTaskDataStorageDc;
|
|
1695
1734
|
/** Storage that is to be used as a target for writing the task result. */
|
|
1696
1735
|
target: BaseTaskDataStorageDc;
|
|
1736
|
+
/**
|
|
1737
|
+
* Save mode (create or update).
|
|
1738
|
+
*
|
|
1739
|
+
* create
|
|
1740
|
+
*
|
|
1741
|
+
* update
|
|
1742
|
+
*/
|
|
1743
|
+
saveMode: SaveMode;
|
|
1697
1744
|
/** Type of the task. */
|
|
1698
1745
|
type?: string;
|
|
1699
1746
|
}
|
|
@@ -1761,6 +1808,14 @@ export interface FilterCopyTaskParametersDc {
|
|
|
1761
1808
|
source: BaseTaskDataStorageDc;
|
|
1762
1809
|
/** Storage that is to be used as a target for writing the task result. */
|
|
1763
1810
|
target: BaseTaskDataStorageDc;
|
|
1811
|
+
/**
|
|
1812
|
+
* Save mode (create or update).
|
|
1813
|
+
*
|
|
1814
|
+
* create
|
|
1815
|
+
*
|
|
1816
|
+
* update
|
|
1817
|
+
*/
|
|
1818
|
+
saveMode: SaveMode;
|
|
1764
1819
|
}
|
|
1765
1820
|
/**
|
|
1766
1821
|
* Server response for the creation of a filter in filter service.
|
|
@@ -2811,6 +2866,14 @@ export interface OverlayTaskParametersDc {
|
|
|
2811
2866
|
source: BaseTaskDataStorageDc;
|
|
2812
2867
|
/** Storage that is to be used as a target for writing the task result. */
|
|
2813
2868
|
target: BaseTaskDataStorageDc;
|
|
2869
|
+
/**
|
|
2870
|
+
* Save mode (create or update).
|
|
2871
|
+
*
|
|
2872
|
+
* create
|
|
2873
|
+
*
|
|
2874
|
+
* update
|
|
2875
|
+
*/
|
|
2876
|
+
saveMode: SaveMode;
|
|
2814
2877
|
}
|
|
2815
2878
|
/**
|
|
2816
2879
|
* Features list definition.
|
|
@@ -3945,6 +4008,17 @@ export interface RoutingProviderInfoDc {
|
|
|
3945
4008
|
*/
|
|
3946
4009
|
maxPointsInBatch?: number;
|
|
3947
4010
|
}
|
|
4011
|
+
/**
|
|
4012
|
+
* Save mode (create or update).
|
|
4013
|
+
|
|
4014
|
+
create
|
|
4015
|
+
|
|
4016
|
+
update
|
|
4017
|
+
*/
|
|
4018
|
+
export declare enum SaveMode {
|
|
4019
|
+
Create = "create",
|
|
4020
|
+
Update = "update"
|
|
4021
|
+
}
|
|
3948
4022
|
/**
|
|
3949
4023
|
* ScaleBar element data contract.
|
|
3950
4024
|
*/
|
|
@@ -5261,6 +5335,14 @@ export interface UnionTaskParametersDc {
|
|
|
5261
5335
|
source: BaseTaskDataStorageDc;
|
|
5262
5336
|
/** Storage that is to be used as a target for writing the task result. */
|
|
5263
5337
|
target: BaseTaskDataStorageDc;
|
|
5338
|
+
/**
|
|
5339
|
+
* Save mode (create or update).
|
|
5340
|
+
*
|
|
5341
|
+
* create
|
|
5342
|
+
*
|
|
5343
|
+
* update
|
|
5344
|
+
*/
|
|
5345
|
+
saveMode: SaveMode;
|
|
5264
5346
|
}
|
|
5265
5347
|
/**
|
|
5266
5348
|
* Update role data contract.
|
|
@@ -6126,6 +6208,8 @@ export interface ClassifyParams {
|
|
|
6126
6208
|
* equalInterval
|
|
6127
6209
|
*
|
|
6128
6210
|
* quantile
|
|
6211
|
+
*
|
|
6212
|
+
* unique
|
|
6129
6213
|
*/
|
|
6130
6214
|
type?: ClassificationType;
|
|
6131
6215
|
/** The name of the layer. */
|
|
@@ -6348,7 +6432,7 @@ export interface GetProjectsListParams {
|
|
|
6348
6432
|
*/
|
|
6349
6433
|
export declare type CreateProjectPayload = ExtendedProjectInfoDc | ResourceInfoDc | ProjectInfoDc;
|
|
6350
6434
|
export declare type SetPermissionsBatchBody = ResourceAclDc[];
|
|
6351
|
-
export interface
|
|
6435
|
+
export interface DeleteResourcesParams5 {
|
|
6352
6436
|
/** Resource names. */
|
|
6353
6437
|
names?: string[];
|
|
6354
6438
|
}
|
|
@@ -6540,7 +6624,7 @@ export interface StatisticsDbParams {
|
|
|
6540
6624
|
/** Type of required statistic function. */
|
|
6541
6625
|
types?: AggregationFunction[];
|
|
6542
6626
|
}
|
|
6543
|
-
export interface
|
|
6627
|
+
export interface ClassifyParams6 {
|
|
6544
6628
|
/** Layer name. */
|
|
6545
6629
|
name?: string;
|
|
6546
6630
|
/** Attribute name. */
|
|
@@ -6567,6 +6651,8 @@ export interface ClassifyParams3 {
|
|
|
6567
6651
|
* equalInterval
|
|
6568
6652
|
*
|
|
6569
6653
|
* quantile
|
|
6654
|
+
*
|
|
6655
|
+
* unique
|
|
6570
6656
|
*/
|
|
6571
6657
|
type?: ClassificationType;
|
|
6572
6658
|
/**
|
|
@@ -6575,9 +6661,19 @@ export interface ClassifyParams3 {
|
|
|
6575
6661
|
* decimal
|
|
6576
6662
|
*
|
|
6577
6663
|
* dateTime
|
|
6664
|
+
*
|
|
6665
|
+
* text
|
|
6578
6666
|
*/
|
|
6579
6667
|
attributeType?: ClassifyAttributeType;
|
|
6580
6668
|
}
|
|
6669
|
+
export interface SumOfProductParams {
|
|
6670
|
+
/** Layer name. */
|
|
6671
|
+
name?: string;
|
|
6672
|
+
/** Attributes to aggregate. */
|
|
6673
|
+
attributes?: string[];
|
|
6674
|
+
/** Layer condition. */
|
|
6675
|
+
condition?: string;
|
|
6676
|
+
}
|
|
6581
6677
|
/**
|
|
6582
6678
|
* Feature layer rendering style.
|
|
6583
6679
|
*/
|
|
@@ -6633,7 +6729,7 @@ export interface GetTableListParams {
|
|
|
6633
6729
|
*/
|
|
6634
6730
|
export declare type CreateTablePayload = DetailedTableInfoDc | ResourceInfoDc | TableInfoDc;
|
|
6635
6731
|
export declare type SetPermissionsBatchInput = ResourceAclDc[];
|
|
6636
|
-
export interface
|
|
6732
|
+
export interface DeleteResourcesParams4 {
|
|
6637
6733
|
/** Resource names. */
|
|
6638
6734
|
names?: string[];
|
|
6639
6735
|
}
|
|
@@ -6738,7 +6834,7 @@ export interface GetCapabilitiesParams {
|
|
|
6738
6834
|
/** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
|
|
6739
6835
|
AcceptFormats?: string[];
|
|
6740
6836
|
}
|
|
6741
|
-
export interface
|
|
6837
|
+
export interface GetCapabilitiesParams8 {
|
|
6742
6838
|
/** Output format of service metadata. */
|
|
6743
6839
|
Format?: string;
|
|
6744
6840
|
/** 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);
|
|
@@ -6352,11 +6369,13 @@ function isFeatureLayer(layer) {
|
|
|
6352
6369
|
ClassificationType["NaturalBreaks"] = "naturalBreaks";
|
|
6353
6370
|
ClassificationType["EqualInterval"] = "equalInterval";
|
|
6354
6371
|
ClassificationType["Quantile"] = "quantile";
|
|
6372
|
+
ClassificationType["Distinct"] = "unique";
|
|
6355
6373
|
})(exports.ClassificationType || (exports.ClassificationType = {}));
|
|
6356
6374
|
|
|
6357
6375
|
(function (ClassifyAttributeType) {
|
|
6358
6376
|
ClassifyAttributeType["Decimal"] = "decimal";
|
|
6359
6377
|
ClassifyAttributeType["DateTime"] = "dateTime";
|
|
6378
|
+
ClassifyAttributeType["Text"] = "text";
|
|
6360
6379
|
})(exports.ClassifyAttributeType || (exports.ClassifyAttributeType = {}));
|
|
6361
6380
|
|
|
6362
6381
|
(function (ConfigurationErrorEnum) {
|
|
@@ -6520,6 +6539,11 @@ function isFeatureLayer(layer) {
|
|
|
6520
6539
|
ResourceTypeLink["Project"] = "projects";
|
|
6521
6540
|
})(exports.ResourceTypeLink || (exports.ResourceTypeLink = {}));
|
|
6522
6541
|
|
|
6542
|
+
(function (SaveMode) {
|
|
6543
|
+
SaveMode["Create"] = "create";
|
|
6544
|
+
SaveMode["Update"] = "update";
|
|
6545
|
+
})(exports.SaveMode || (exports.SaveMode = {}));
|
|
6546
|
+
|
|
6523
6547
|
(function (ServerTaskStatus) {
|
|
6524
6548
|
ServerTaskStatus["None"] = "None";
|
|
6525
6549
|
ServerTaskStatus["Scheduled"] = "Scheduled";
|