@evergis/api 3.0.72 → 3.0.75
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/LICENSE +20 -20
- package/README.md +21 -21
- package/dist/Api.d.ts +3 -1
- package/dist/__generated__/FeedbackService.d.ts +12 -1
- package/dist/__generated__/FiltersService.d.ts +42 -0
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +7 -7
- package/dist/__generated__/StyleService.d.ts +23 -1
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +330 -175
- package/dist/api.cjs.development.js +235 -27
- 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 +335 -131
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Feedback.d.ts +5 -0
- package/dist/services/Statistic.d.ts +6 -0
- package/dist/services/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -34,6 +34,9 @@ function _defineProperties(target, props) {
|
|
|
34
34
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
35
35
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
36
36
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
37
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
38
|
+
writable: false
|
|
39
|
+
});
|
|
37
40
|
return Constructor;
|
|
38
41
|
}
|
|
39
42
|
|
|
@@ -67,6 +70,9 @@ function _inherits(subClass, superClass) {
|
|
|
67
70
|
configurable: true
|
|
68
71
|
}
|
|
69
72
|
});
|
|
73
|
+
Object.defineProperty(subClass, "prototype", {
|
|
74
|
+
writable: false
|
|
75
|
+
});
|
|
70
76
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
71
77
|
}
|
|
72
78
|
|
|
@@ -125,6 +131,8 @@ function _assertThisInitialized(self) {
|
|
|
125
131
|
function _possibleConstructorReturn(self, call) {
|
|
126
132
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
127
133
|
return call;
|
|
134
|
+
} else if (call !== void 0) {
|
|
135
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
128
136
|
}
|
|
129
137
|
|
|
130
138
|
return _assertThisInitialized(self);
|
|
@@ -158,7 +166,7 @@ function _superPropBase(object, property) {
|
|
|
158
166
|
return object;
|
|
159
167
|
}
|
|
160
168
|
|
|
161
|
-
function _get(
|
|
169
|
+
function _get() {
|
|
162
170
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
163
171
|
_get = Reflect.get;
|
|
164
172
|
} else {
|
|
@@ -169,14 +177,14 @@ function _get(target, property, receiver) {
|
|
|
169
177
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
170
178
|
|
|
171
179
|
if (desc.get) {
|
|
172
|
-
return desc.get.call(receiver);
|
|
180
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
173
181
|
}
|
|
174
182
|
|
|
175
183
|
return desc.value;
|
|
176
184
|
};
|
|
177
185
|
}
|
|
178
186
|
|
|
179
|
-
return _get(
|
|
187
|
+
return _get.apply(this, arguments);
|
|
180
188
|
}
|
|
181
189
|
|
|
182
190
|
/* eslint-disable */
|
|
@@ -857,8 +865,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
857
865
|
|| event.code === 4002
|
|
858
866
|
/* InvalidSession */
|
|
859
867
|
) {
|
|
860
|
-
|
|
861
|
-
|
|
868
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
869
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
862
870
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
863
871
|
_this.reconnectTries++;
|
|
864
872
|
|
|
@@ -1364,7 +1372,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
1364
1372
|
const taskProgress = await this.getTaskProgress(id);
|
|
1365
1373
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
1366
1374
|
|
|
1367
|
-
const taskResultCallback = async
|
|
1375
|
+
const taskResultCallback = async _ref => {
|
|
1368
1376
|
let {
|
|
1369
1377
|
data
|
|
1370
1378
|
} = _ref;
|
|
@@ -3475,12 +3483,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
3475
3483
|
}, {
|
|
3476
3484
|
key: "getDependentNames",
|
|
3477
3485
|
value: function getDependentNames(deps, depType) {
|
|
3478
|
-
return deps.filter(
|
|
3486
|
+
return deps.filter(_ref => {
|
|
3479
3487
|
let {
|
|
3480
3488
|
type
|
|
3481
3489
|
} = _ref;
|
|
3482
3490
|
return type === depType;
|
|
3483
|
-
}).map(
|
|
3491
|
+
}).map(_ref2 => {
|
|
3484
3492
|
let {
|
|
3485
3493
|
name
|
|
3486
3494
|
} = _ref2;
|
|
@@ -3573,6 +3581,38 @@ let StyleService = /*#__PURE__*/function (_Service) {
|
|
|
3573
3581
|
value: function getAllFonts() {
|
|
3574
3582
|
return this.http.get("/styles/fonts").json();
|
|
3575
3583
|
}
|
|
3584
|
+
/**
|
|
3585
|
+
* No description
|
|
3586
|
+
*
|
|
3587
|
+
* @tags StyleService
|
|
3588
|
+
* @name AddFont
|
|
3589
|
+
* @operationId StyleServiceController_AddFont
|
|
3590
|
+
* @summary Install new font.
|
|
3591
|
+
* @request POST:/styles/fonts
|
|
3592
|
+
* @response `200` Success
|
|
3593
|
+
*/
|
|
3594
|
+
|
|
3595
|
+
}, {
|
|
3596
|
+
key: "addFont",
|
|
3597
|
+
value: function addFont(data) {
|
|
3598
|
+
return this.http.post("/styles/fonts", toFormData(data)).then(() => {});
|
|
3599
|
+
}
|
|
3600
|
+
/**
|
|
3601
|
+
* No description
|
|
3602
|
+
*
|
|
3603
|
+
* @tags StyleService
|
|
3604
|
+
* @name RemoveFont
|
|
3605
|
+
* @operationId StyleServiceController_RemoveFont
|
|
3606
|
+
* @summary Remove installed font.
|
|
3607
|
+
* @request DELETE:/styles/fonts
|
|
3608
|
+
* @response `200` Success
|
|
3609
|
+
*/
|
|
3610
|
+
|
|
3611
|
+
}, {
|
|
3612
|
+
key: "removeFont",
|
|
3613
|
+
value: function removeFont(query) {
|
|
3614
|
+
return this.http.delete("/styles/fonts", null, query).then(() => {});
|
|
3615
|
+
}
|
|
3576
3616
|
}]);
|
|
3577
3617
|
|
|
3578
3618
|
return StyleService;
|
|
@@ -5468,6 +5508,177 @@ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
|
|
|
5468
5508
|
return _createClass(IceRouter);
|
|
5469
5509
|
}(IceRouterService);
|
|
5470
5510
|
|
|
5511
|
+
/**
|
|
5512
|
+
* @title Spatial Processing Core API
|
|
5513
|
+
* @version v0.6.0
|
|
5514
|
+
* @baseUrl /sp
|
|
5515
|
+
*/
|
|
5516
|
+
|
|
5517
|
+
let StatisticService = /*#__PURE__*/function (_Service) {
|
|
5518
|
+
_inherits(StatisticService, _Service);
|
|
5519
|
+
|
|
5520
|
+
var _super = /*#__PURE__*/_createSuper(StatisticService);
|
|
5521
|
+
|
|
5522
|
+
function StatisticService() {
|
|
5523
|
+
_classCallCheck(this, StatisticService);
|
|
5524
|
+
|
|
5525
|
+
return _super.apply(this, arguments);
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5528
|
+
_createClass(StatisticService, [{
|
|
5529
|
+
key: "statisticsDb",
|
|
5530
|
+
value:
|
|
5531
|
+
/**
|
|
5532
|
+
* No description
|
|
5533
|
+
*
|
|
5534
|
+
* @tags Statistic
|
|
5535
|
+
* @name StatisticsDb
|
|
5536
|
+
* @operationId StatisticController_StatisticsDb
|
|
5537
|
+
* @summary Calculates statistics for layer attribute.
|
|
5538
|
+
* @request GET:/statistics
|
|
5539
|
+
* @response `200` Success
|
|
5540
|
+
*/
|
|
5541
|
+
function statisticsDb(query) {
|
|
5542
|
+
return this.http.get("/statistics", query).json();
|
|
5543
|
+
}
|
|
5544
|
+
/**
|
|
5545
|
+
* No description
|
|
5546
|
+
*
|
|
5547
|
+
* @tags Statistic
|
|
5548
|
+
* @name Classify
|
|
5549
|
+
* @operationId StatisticController_Classify
|
|
5550
|
+
* @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
|
|
5551
|
+
* @request GET:/classify
|
|
5552
|
+
* @response `200` Success
|
|
5553
|
+
*/
|
|
5554
|
+
|
|
5555
|
+
}, {
|
|
5556
|
+
key: "classify",
|
|
5557
|
+
value: function classify(query) {
|
|
5558
|
+
return this.http.get("/classify", query).json();
|
|
5559
|
+
}
|
|
5560
|
+
}]);
|
|
5561
|
+
|
|
5562
|
+
return StatisticService;
|
|
5563
|
+
}(Service);
|
|
5564
|
+
|
|
5565
|
+
let Statistic = /*#__PURE__*/function (_StatisticService) {
|
|
5566
|
+
_inherits(Statistic, _StatisticService);
|
|
5567
|
+
|
|
5568
|
+
var _super = /*#__PURE__*/_createSuper(Statistic);
|
|
5569
|
+
|
|
5570
|
+
function Statistic() {
|
|
5571
|
+
_classCallCheck(this, Statistic);
|
|
5572
|
+
|
|
5573
|
+
return _super.apply(this, arguments);
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5576
|
+
_createClass(Statistic, [{
|
|
5577
|
+
key: "getStatistic",
|
|
5578
|
+
value: function getStatistic(params) {
|
|
5579
|
+
return this.statisticsDb(params);
|
|
5580
|
+
}
|
|
5581
|
+
}, {
|
|
5582
|
+
key: "getClassify",
|
|
5583
|
+
value: function getClassify(params) {
|
|
5584
|
+
return this.classify(params);
|
|
5585
|
+
}
|
|
5586
|
+
}]);
|
|
5587
|
+
|
|
5588
|
+
return Statistic;
|
|
5589
|
+
}(StatisticService);
|
|
5590
|
+
|
|
5591
|
+
/**
|
|
5592
|
+
* @title Spatial Processing Core API
|
|
5593
|
+
* @version v0.6.0
|
|
5594
|
+
* @baseUrl /sp
|
|
5595
|
+
*/
|
|
5596
|
+
|
|
5597
|
+
let FeedbackService = /*#__PURE__*/function (_Service) {
|
|
5598
|
+
_inherits(FeedbackService, _Service);
|
|
5599
|
+
|
|
5600
|
+
var _super = /*#__PURE__*/_createSuper(FeedbackService);
|
|
5601
|
+
|
|
5602
|
+
function FeedbackService() {
|
|
5603
|
+
_classCallCheck(this, FeedbackService);
|
|
5604
|
+
|
|
5605
|
+
return _super.apply(this, arguments);
|
|
5606
|
+
}
|
|
5607
|
+
|
|
5608
|
+
_createClass(FeedbackService, [{
|
|
5609
|
+
key: "increaseResourcesLimit",
|
|
5610
|
+
value:
|
|
5611
|
+
/**
|
|
5612
|
+
* No description
|
|
5613
|
+
*
|
|
5614
|
+
* @tags Feedback
|
|
5615
|
+
* @name IncreaseResourcesLimit
|
|
5616
|
+
* @operationId FeedbackController_IncreaseResourcesLimit
|
|
5617
|
+
* @summary Increase resources limit request.
|
|
5618
|
+
* @request POST:/feedback/limits
|
|
5619
|
+
* @response `200` Success
|
|
5620
|
+
*/
|
|
5621
|
+
function increaseResourcesLimit(query) {
|
|
5622
|
+
return this.http.post("/feedback/limits", null, query).json();
|
|
5623
|
+
}
|
|
5624
|
+
/**
|
|
5625
|
+
* No description
|
|
5626
|
+
*
|
|
5627
|
+
* @tags Feedback
|
|
5628
|
+
* @name MoreSymbols
|
|
5629
|
+
* @operationId FeedbackController_MoreSymbols
|
|
5630
|
+
* @summary More symbols request.
|
|
5631
|
+
* @request POST:/feedback/symbol
|
|
5632
|
+
* @response `200` Success
|
|
5633
|
+
*/
|
|
5634
|
+
|
|
5635
|
+
}, {
|
|
5636
|
+
key: "moreSymbols",
|
|
5637
|
+
value: function moreSymbols(query) {
|
|
5638
|
+
return this.http.post("/feedback/symbol", null, query).json();
|
|
5639
|
+
}
|
|
5640
|
+
/**
|
|
5641
|
+
* No description
|
|
5642
|
+
*
|
|
5643
|
+
* @tags Feedback
|
|
5644
|
+
* @name Feedback
|
|
5645
|
+
* @operationId FeedbackController_Feedback
|
|
5646
|
+
* @summary Feedback request.
|
|
5647
|
+
* @request POST:/feedback
|
|
5648
|
+
* @response `200` Success
|
|
5649
|
+
*/
|
|
5650
|
+
|
|
5651
|
+
}, {
|
|
5652
|
+
key: "feedback",
|
|
5653
|
+
value: function feedback(query, data) {
|
|
5654
|
+
return this.http.post("/feedback", toFormData(data), query).json();
|
|
5655
|
+
}
|
|
5656
|
+
}]);
|
|
5657
|
+
|
|
5658
|
+
return FeedbackService;
|
|
5659
|
+
}(Service);
|
|
5660
|
+
|
|
5661
|
+
let Feedback = /*#__PURE__*/function (_FeedbackService) {
|
|
5662
|
+
_inherits(Feedback, _FeedbackService);
|
|
5663
|
+
|
|
5664
|
+
var _super = /*#__PURE__*/_createSuper(Feedback);
|
|
5665
|
+
|
|
5666
|
+
function Feedback() {
|
|
5667
|
+
_classCallCheck(this, Feedback);
|
|
5668
|
+
|
|
5669
|
+
return _super.apply(this, arguments);
|
|
5670
|
+
}
|
|
5671
|
+
|
|
5672
|
+
_createClass(Feedback, [{
|
|
5673
|
+
key: "postFeedback",
|
|
5674
|
+
value: function postFeedback(query, data) {
|
|
5675
|
+
return this.feedback(query, data);
|
|
5676
|
+
}
|
|
5677
|
+
}]);
|
|
5678
|
+
|
|
5679
|
+
return Feedback;
|
|
5680
|
+
}(FeedbackService);
|
|
5681
|
+
|
|
5471
5682
|
/**
|
|
5472
5683
|
* @title Spatial Processing Core API
|
|
5473
5684
|
* @version v0.6.0
|
|
@@ -5682,6 +5893,8 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5682
5893
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
5683
5894
|
_this.portalSettings = new PortalSettings(_this.http);
|
|
5684
5895
|
_this.iceRouter = new IceRouter(_this.http);
|
|
5896
|
+
_this.statistic = new Statistic(_this.http);
|
|
5897
|
+
_this.feedback = new Feedback(_this.http);
|
|
5685
5898
|
_this.names = new Names({
|
|
5686
5899
|
account: _this.account
|
|
5687
5900
|
});
|
|
@@ -6108,6 +6321,12 @@ function isFeatureLayer(layer) {
|
|
|
6108
6321
|
AggregationFunction["Sum"] = "Sum";
|
|
6109
6322
|
AggregationFunction["Extent"] = "Extent";
|
|
6110
6323
|
AggregationFunction["Count"] = "Count";
|
|
6324
|
+
AggregationFunction["First"] = "First";
|
|
6325
|
+
AggregationFunction["Last"] = "Last";
|
|
6326
|
+
AggregationFunction["Median"] = "Median";
|
|
6327
|
+
AggregationFunction["Mod"] = "Mod";
|
|
6328
|
+
AggregationFunction["StdDeviation"] = "StdDeviation";
|
|
6329
|
+
AggregationFunction["SumOfProduct"] = "SumOfProduct";
|
|
6111
6330
|
AggregationFunction["OnlyValue"] = "OnlyValue";
|
|
6112
6331
|
AggregationFunction["WeightedAvg"] = "WeightedAvg";
|
|
6113
6332
|
AggregationFunction["DensityIndicators"] = "DensityIndicators";
|
|
@@ -6129,11 +6348,17 @@ function isFeatureLayer(layer) {
|
|
|
6129
6348
|
})(exports.AttributeType || (exports.AttributeType = {}));
|
|
6130
6349
|
|
|
6131
6350
|
(function (ClassificationType) {
|
|
6351
|
+
ClassificationType["None"] = "none";
|
|
6132
6352
|
ClassificationType["NaturalBreaks"] = "naturalBreaks";
|
|
6133
6353
|
ClassificationType["EqualInterval"] = "equalInterval";
|
|
6134
6354
|
ClassificationType["Quantile"] = "quantile";
|
|
6135
6355
|
})(exports.ClassificationType || (exports.ClassificationType = {}));
|
|
6136
6356
|
|
|
6357
|
+
(function (ClassifyAttributeType) {
|
|
6358
|
+
ClassifyAttributeType["Decimal"] = "decimal";
|
|
6359
|
+
ClassifyAttributeType["DateTime"] = "dateTime";
|
|
6360
|
+
})(exports.ClassifyAttributeType || (exports.ClassifyAttributeType = {}));
|
|
6361
|
+
|
|
6137
6362
|
(function (ConfigurationErrorEnum) {
|
|
6138
6363
|
ConfigurationErrorEnum["Unknown"] = "Unknown";
|
|
6139
6364
|
ConfigurationErrorEnum["SerializeError"] = "SerializeError";
|
|
@@ -6212,21 +6437,15 @@ function isFeatureLayer(layer) {
|
|
|
6212
6437
|
(function (FontWeight) {
|
|
6213
6438
|
FontWeight["Thin"] = "Thin";
|
|
6214
6439
|
FontWeight["ExtraLight"] = "ExtraLight";
|
|
6215
|
-
FontWeight["UltraLight"] = "UltraLight";
|
|
6216
6440
|
FontWeight["Light"] = "Light";
|
|
6217
6441
|
FontWeight["SemiLight"] = "SemiLight";
|
|
6218
6442
|
FontWeight["Normal"] = "Normal";
|
|
6219
|
-
FontWeight["Regular"] = "Regular";
|
|
6220
6443
|
FontWeight["Medium"] = "Medium";
|
|
6221
6444
|
FontWeight["DemiBold"] = "DemiBold";
|
|
6222
|
-
FontWeight["SemiBold"] = "SemiBold";
|
|
6223
6445
|
FontWeight["Bold"] = "Bold";
|
|
6224
6446
|
FontWeight["ExtraBold"] = "ExtraBold";
|
|
6225
|
-
FontWeight["UltraBold"] = "UltraBold";
|
|
6226
6447
|
FontWeight["Black"] = "Black";
|
|
6227
|
-
FontWeight["Heavy"] = "Heavy";
|
|
6228
6448
|
FontWeight["ExtraBlack"] = "ExtraBlack";
|
|
6229
|
-
FontWeight["UltraBlack"] = "UltraBlack";
|
|
6230
6449
|
})(exports.FontWeight || (exports.FontWeight = {}));
|
|
6231
6450
|
|
|
6232
6451
|
(function (GeometryType) {
|
|
@@ -6312,19 +6531,6 @@ function isFeatureLayer(layer) {
|
|
|
6312
6531
|
ServerTaskStatus["Timeout"] = "Timeout";
|
|
6313
6532
|
})(exports.ServerTaskStatus || (exports.ServerTaskStatus = {}));
|
|
6314
6533
|
|
|
6315
|
-
(function (StatisticsType) {
|
|
6316
|
-
StatisticsType["Min"] = "min";
|
|
6317
|
-
StatisticsType["Max"] = "max";
|
|
6318
|
-
StatisticsType["Avg"] = "avg";
|
|
6319
|
-
StatisticsType["Med"] = "med";
|
|
6320
|
-
StatisticsType["Mod"] = "mod";
|
|
6321
|
-
StatisticsType["Sum"] = "sum";
|
|
6322
|
-
StatisticsType["SumOfProduct"] = "sumOfProduct";
|
|
6323
|
-
StatisticsType["Count"] = "count";
|
|
6324
|
-
StatisticsType["FirstLast"] = "firstLast";
|
|
6325
|
-
StatisticsType["StandardDeviation"] = "standardDeviation";
|
|
6326
|
-
})(exports.StatisticsType || (exports.StatisticsType = {}));
|
|
6327
|
-
|
|
6328
6534
|
(function (StringSubType) {
|
|
6329
6535
|
StringSubType["None"] = "None";
|
|
6330
6536
|
StringSubType["Image"] = "Image";
|
|
@@ -6365,6 +6571,7 @@ exports.ClientSettings = ClientSettings;
|
|
|
6365
6571
|
exports.EvergisDynamicLayer = EvergisDynamicLayer;
|
|
6366
6572
|
exports.EvergisTileLayer = EvergisTileLayer;
|
|
6367
6573
|
exports.External = External;
|
|
6574
|
+
exports.Feedback = Feedback;
|
|
6368
6575
|
exports.FileUpload = FileUpload;
|
|
6369
6576
|
exports.GEOCODE_PROVIDER = GEOCODE_PROVIDER;
|
|
6370
6577
|
exports.General = General;
|
|
@@ -6385,6 +6592,7 @@ exports.Resources = Resources;
|
|
|
6385
6592
|
exports.Scheduler = Scheduler;
|
|
6386
6593
|
exports.Security = Security;
|
|
6387
6594
|
exports.SpatialProcessor = SpatialProcessor;
|
|
6595
|
+
exports.Statistic = Statistic;
|
|
6388
6596
|
exports.Styles = Styles;
|
|
6389
6597
|
exports.Tables = Tables;
|
|
6390
6598
|
exports.Tools = Tools;
|