@evergis/api 4.0.2 → 4.0.4

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.esm.js CHANGED
@@ -3408,7 +3408,7 @@ const _excluded$3 = ["name"],
3408
3408
  _excluded5$1 = ["name", "id"],
3409
3409
  _excluded6$1 = ["name", "id"],
3410
3410
  _excluded7 = ["name", "x", "y", "z"],
3411
- _excluded8 = ["name"],
3411
+ _excluded8 = ["name", "x", "y", "z", "format"],
3412
3412
  _excluded9 = ["name"],
3413
3413
  _excluded10 = ["name"],
3414
3414
  _excluded11 = ["name"],
@@ -3419,8 +3419,9 @@ const _excluded$3 = ["name"],
3419
3419
  _excluded16 = ["name"],
3420
3420
  _excluded17 = ["name"],
3421
3421
  _excluded18 = ["name"],
3422
- _excluded19 = ["layerName"],
3423
- _excluded20 = ["name", "id"];
3422
+ _excluded19 = ["name"],
3423
+ _excluded20 = ["layerName"],
3424
+ _excluded21 = ["name", "id"];
3424
3425
  /**
3425
3426
  * @title Spatial Processing Core API
3426
3427
  * @version 1.5.1.0
@@ -4125,6 +4126,31 @@ let LayersService = /*#__PURE__*/function (_Service) {
4125
4126
 
4126
4127
  return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
4127
4128
  }
4129
+ /**
4130
+ * No description
4131
+ *
4132
+ * @tags Layers
4133
+ * @name GetTilesLayerImageWithFormat
4134
+ * @operationId LayersController_GetTilesLayerImageWithFormat
4135
+ * @summary Render tile with input indexes.
4136
+ * @request GET:/layers/{name}/tile/{z}/{x}/{y}.{format}
4137
+ * @response `200` OK
4138
+ */
4139
+
4140
+ }, {
4141
+ key: "getTilesLayerImageWithFormat",
4142
+ value: function getTilesLayerImageWithFormat(_ref8) {
4143
+ let {
4144
+ name,
4145
+ x,
4146
+ y,
4147
+ z,
4148
+ format
4149
+ } = _ref8,
4150
+ query = _objectWithoutPropertiesLoose(_ref8, _excluded8);
4151
+
4152
+ return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y + "." + format, query);
4153
+ }
4128
4154
  /**
4129
4155
  * No description
4130
4156
  *
@@ -4138,11 +4164,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4138
4164
 
4139
4165
  }, {
4140
4166
  key: "getLayerImage",
4141
- value: function getLayerImage(_ref8) {
4167
+ value: function getLayerImage(_ref9) {
4142
4168
  let {
4143
4169
  name
4144
- } = _ref8,
4145
- query = _objectWithoutPropertiesLoose(_ref8, _excluded8);
4170
+ } = _ref9,
4171
+ query = _objectWithoutPropertiesLoose(_ref9, _excluded9);
4146
4172
 
4147
4173
  return this.http.createUrl("/layers/" + name + "/export", query);
4148
4174
  }
@@ -4159,11 +4185,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4159
4185
 
4160
4186
  }, {
4161
4187
  key: "getLayerExtent",
4162
- value: function getLayerExtent(_ref9) {
4188
+ value: function getLayerExtent(_ref10) {
4163
4189
  let {
4164
4190
  name
4165
- } = _ref9,
4166
- query = _objectWithoutPropertiesLoose(_ref9, _excluded9);
4191
+ } = _ref10,
4192
+ query = _objectWithoutPropertiesLoose(_ref10, _excluded10);
4167
4193
 
4168
4194
  return this.http.get("/layers/" + name + "/extent", query).json();
4169
4195
  }
@@ -4180,11 +4206,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4180
4206
 
4181
4207
  }, {
4182
4208
  key: "getByGeometry",
4183
- value: function getByGeometry(_ref10) {
4209
+ value: function getByGeometry(_ref11) {
4184
4210
  let {
4185
4211
  name
4186
- } = _ref10,
4187
- query = _objectWithoutPropertiesLoose(_ref10, _excluded10);
4212
+ } = _ref11,
4213
+ query = _objectWithoutPropertiesLoose(_ref11, _excluded11);
4188
4214
 
4189
4215
  return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
4190
4216
  }
@@ -4201,11 +4227,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4201
4227
 
4202
4228
  }, {
4203
4229
  key: "getByGeometryPost",
4204
- value: function getByGeometryPost(_ref11, data) {
4230
+ value: function getByGeometryPost(_ref12, data) {
4205
4231
  let {
4206
4232
  name
4207
- } = _ref11,
4208
- query = _objectWithoutPropertiesLoose(_ref11, _excluded11);
4233
+ } = _ref12,
4234
+ query = _objectWithoutPropertiesLoose(_ref12, _excluded12);
4209
4235
 
4210
4236
  return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
4211
4237
  }
@@ -4222,11 +4248,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4222
4248
 
4223
4249
  }, {
4224
4250
  key: "deleteFeatures",
4225
- value: function deleteFeatures(_ref12) {
4251
+ value: function deleteFeatures(_ref13) {
4226
4252
  let {
4227
4253
  name
4228
- } = _ref12,
4229
- query = _objectWithoutPropertiesLoose(_ref12, _excluded12);
4254
+ } = _ref13,
4255
+ query = _objectWithoutPropertiesLoose(_ref13, _excluded13);
4230
4256
 
4231
4257
  return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
4232
4258
  }
@@ -4243,11 +4269,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4243
4269
 
4244
4270
  }, {
4245
4271
  key: "deleteByCondition",
4246
- value: function deleteByCondition(_ref13) {
4272
+ value: function deleteByCondition(_ref14) {
4247
4273
  let {
4248
4274
  name
4249
- } = _ref13,
4250
- query = _objectWithoutPropertiesLoose(_ref13, _excluded13);
4275
+ } = _ref14,
4276
+ query = _objectWithoutPropertiesLoose(_ref14, _excluded14);
4251
4277
 
4252
4278
  return this.http.delete("/layers/" + name + "/features/deleteByCondition", null, query).json();
4253
4279
  }
@@ -4264,11 +4290,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4264
4290
 
4265
4291
  }, {
4266
4292
  key: "getByGeometryGet",
4267
- value: function getByGeometryGet(_ref14) {
4293
+ value: function getByGeometryGet(_ref15) {
4268
4294
  let {
4269
4295
  name
4270
- } = _ref14,
4271
- query = _objectWithoutPropertiesLoose(_ref14, _excluded14);
4296
+ } = _ref15,
4297
+ query = _objectWithoutPropertiesLoose(_ref15, _excluded15);
4272
4298
 
4273
4299
  return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
4274
4300
  }
@@ -4285,11 +4311,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4285
4311
 
4286
4312
  }, {
4287
4313
  key: "classify",
4288
- value: function classify(_ref15) {
4314
+ value: function classify(_ref16) {
4289
4315
  let {
4290
4316
  name
4291
- } = _ref15,
4292
- query = _objectWithoutPropertiesLoose(_ref15, _excluded15);
4317
+ } = _ref16,
4318
+ query = _objectWithoutPropertiesLoose(_ref16, _excluded16);
4293
4319
 
4294
4320
  return this.http.get("/layers/" + name + "/classify", query).json();
4295
4321
  }
@@ -4306,11 +4332,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4306
4332
 
4307
4333
  }, {
4308
4334
  key: "distincts",
4309
- value: function distincts(_ref16) {
4335
+ value: function distincts(_ref17) {
4310
4336
  let {
4311
4337
  name
4312
- } = _ref16,
4313
- query = _objectWithoutPropertiesLoose(_ref16, _excluded16);
4338
+ } = _ref17,
4339
+ query = _objectWithoutPropertiesLoose(_ref17, _excluded17);
4314
4340
 
4315
4341
  return this.http.get("/layers/" + name + "/distincts", query).json();
4316
4342
  }
@@ -4327,11 +4353,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4327
4353
 
4328
4354
  }, {
4329
4355
  key: "aggregateAttribute",
4330
- value: function aggregateAttribute(_ref17) {
4356
+ value: function aggregateAttribute(_ref18) {
4331
4357
  let {
4332
4358
  name
4333
- } = _ref17,
4334
- query = _objectWithoutPropertiesLoose(_ref17, _excluded17);
4359
+ } = _ref18,
4360
+ query = _objectWithoutPropertiesLoose(_ref18, _excluded18);
4335
4361
 
4336
4362
  return this.http.get("/layers/" + name + "/aggregate-values", query).json();
4337
4363
  }
@@ -4348,11 +4374,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4348
4374
 
4349
4375
  }, {
4350
4376
  key: "getFilteredFeaturesCount",
4351
- value: function getFilteredFeaturesCount(_ref18) {
4377
+ value: function getFilteredFeaturesCount(_ref19) {
4352
4378
  let {
4353
4379
  name
4354
- } = _ref18,
4355
- query = _objectWithoutPropertiesLoose(_ref18, _excluded18);
4380
+ } = _ref19,
4381
+ query = _objectWithoutPropertiesLoose(_ref19, _excluded19);
4356
4382
 
4357
4383
  return this.http.get("/layers/" + name + "/features/count", query).json();
4358
4384
  }
@@ -4418,11 +4444,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4418
4444
 
4419
4445
  }, {
4420
4446
  key: "validateExpression",
4421
- value: function validateExpression(_ref19) {
4447
+ value: function validateExpression(_ref20) {
4422
4448
  let {
4423
4449
  layerName
4424
- } = _ref19,
4425
- query = _objectWithoutPropertiesLoose(_ref19, _excluded19);
4450
+ } = _ref20,
4451
+ query = _objectWithoutPropertiesLoose(_ref20, _excluded20);
4426
4452
 
4427
4453
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
4428
4454
  }
@@ -4439,12 +4465,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
4439
4465
 
4440
4466
  }, {
4441
4467
  key: "getRasterMeta",
4442
- value: function getRasterMeta(_ref20) {
4468
+ value: function getRasterMeta(_ref21) {
4443
4469
  let {
4444
4470
  name,
4445
4471
  id
4446
- } = _ref20,
4447
- query = _objectWithoutPropertiesLoose(_ref20, _excluded20);
4472
+ } = _ref21,
4473
+ query = _objectWithoutPropertiesLoose(_ref21, _excluded21);
4448
4474
 
4449
4475
  return this.http.get("/layers/" + name + "/" + id + "/metadata", query).json();
4450
4476
  }
@@ -5761,6 +5787,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
5761
5787
  value: function getTilesLayerImage(name, x, y, z) {
5762
5788
  return this.http.createUrl("/projects/" + name + "/tile/" + z + "/" + x + "/" + y);
5763
5789
  }
5790
+ /**
5791
+ * No description
5792
+ *
5793
+ * @tags Projects
5794
+ * @name GetTilesLayerImageWithFormat
5795
+ * @operationId ProjectsController_GetTilesLayerImageWithFormat
5796
+ * @summary Render tile.
5797
+ * @request GET:/projects/{name}/tile/{z}/{x}/{y}.{format}
5798
+ * @response `200` OK
5799
+ */
5800
+
5801
+ }, {
5802
+ key: "getTilesLayerImageWithFormat",
5803
+ value: function getTilesLayerImageWithFormat(name, x, y, z, format) {
5804
+ return this.http.createUrl("/projects/" + name + "/tile/" + z + "/" + x + "/" + y + "." + format);
5805
+ }
5764
5806
  /**
5765
5807
  * No description
5766
5808
  *
@@ -6436,53 +6478,8 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
6436
6478
  }
6437
6479
 
6438
6480
  _createClass(ResourceCatalogService, [{
6439
- key: "checkLimitsForUser",
6481
+ key: "copyResources",
6440
6482
  value:
6441
- /**
6442
- * No description
6443
- *
6444
- * @tags ResourceCatalog
6445
- * @name CheckLimitsForUser
6446
- * @operationId ResourceCatalogController_CheckLimitsForUser
6447
- * @summary Get limits of workspace.
6448
- * @request GET:/resources/checkLimits/user/{userName}
6449
- * @response `200` OK
6450
- */
6451
- function checkLimitsForUser(userName) {
6452
- return this.http.get("/resources/checkLimits/user/" + userName).json();
6453
- }
6454
- /**
6455
- * No description
6456
- *
6457
- * @tags ResourceCatalog
6458
- * @name CheckLimitsForRole
6459
- * @operationId ResourceCatalogController_CheckLimitsForRole
6460
- * @summary Get limits of workspace.
6461
- * @request GET:/resources/checkLimits/role/{roleName}
6462
- * @response `200` OK
6463
- */
6464
-
6465
- }, {
6466
- key: "checkLimitsForRole",
6467
- value: function checkLimitsForRole(roleName) {
6468
- return this.http.get("/resources/checkLimits/role/" + roleName).json();
6469
- }
6470
- /**
6471
- * No description
6472
- *
6473
- * @tags ResourceCatalog
6474
- * @name GetDefaultLimits
6475
- * @operationId ResourceCatalogController_GetDefaultLimits
6476
- * @summary Get default limits of workspace.
6477
- * @request GET:/resources/checkLimits/default
6478
- * @response `200` OK
6479
- */
6480
-
6481
- }, {
6482
- key: "getDefaultLimits",
6483
- value: function getDefaultLimits() {
6484
- return this.http.get("/resources/checkLimits/default").json();
6485
- }
6486
6483
  /**
6487
6484
  * No description
6488
6485
  *
@@ -6493,10 +6490,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
6493
6490
  * @request POST:/resources/copy
6494
6491
  * @response `200` OK
6495
6492
  */
6496
-
6497
- }, {
6498
- key: "copyResources",
6499
- value: function copyResources(data) {
6493
+ function copyResources(data) {
6500
6494
  return this.http.post("/resources/copy", data).json();
6501
6495
  }
6502
6496
  }]);
@@ -6634,8 +6628,21 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6634
6628
  }
6635
6629
 
6636
6630
  _createClass(SecurityService, [{
6637
- key: "findUserByNameByRoles",
6631
+ key: "setPolicies",
6638
6632
  value:
6633
+ /**
6634
+ * @description This method requires superuser permission.
6635
+ *
6636
+ * @tags SecurityService
6637
+ * @name SetPolicies
6638
+ * @operationId SecurityServiceController_SetPolicies
6639
+ * @summary Adds the given policies to the server policy list. If a policy with the same type and user role already exists, it replaces the existing policy with the new one.
6640
+ * @request POST:/bulk/security/policies
6641
+ * @response `200` OK
6642
+ */
6643
+ function setPolicies(data) {
6644
+ return this.http.post("/bulk/security/policies", data).then(() => {});
6645
+ }
6639
6646
  /**
6640
6647
  * No description
6641
6648
  *
@@ -6646,7 +6653,10 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6646
6653
  * @request GET:/security/findUsersWithRoles
6647
6654
  * @response `200` OK
6648
6655
  */
6649
- function findUserByNameByRoles(query) {
6656
+
6657
+ }, {
6658
+ key: "findUserByNameByRoles",
6659
+ value: function findUserByNameByRoles(query) {
6650
6660
  return this.http.get("/security/findUsersWithRoles", query).json();
6651
6661
  }
6652
6662
  /**
@@ -6729,6 +6739,54 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6729
6739
  value: function setPolicy(data) {
6730
6740
  return this.http.post("/security/policies", data).then(() => {});
6731
6741
  }
6742
+ /**
6743
+ * No description
6744
+ *
6745
+ * @tags SecurityService
6746
+ * @name CheckLimitsForUser
6747
+ * @operationId SecurityServiceController_CheckLimitsForUser
6748
+ * @summary Get limits of workspace.
6749
+ * @request GET:/security/limits/user/{userName}
6750
+ * @response `200` OK
6751
+ */
6752
+
6753
+ }, {
6754
+ key: "checkLimitsForUser",
6755
+ value: function checkLimitsForUser(userName) {
6756
+ return this.http.get("/security/limits/user/" + userName).json();
6757
+ }
6758
+ /**
6759
+ * No description
6760
+ *
6761
+ * @tags SecurityService
6762
+ * @name CheckLimitsForRole
6763
+ * @operationId SecurityServiceController_CheckLimitsForRole
6764
+ * @summary Get limits of workspace.
6765
+ * @request GET:/security/limits/role/{roleName}
6766
+ * @response `200` OK
6767
+ */
6768
+
6769
+ }, {
6770
+ key: "checkLimitsForRole",
6771
+ value: function checkLimitsForRole(roleName) {
6772
+ return this.http.get("/security/limits/role/" + roleName).json();
6773
+ }
6774
+ /**
6775
+ * No description
6776
+ *
6777
+ * @tags SecurityService
6778
+ * @name GetDefaultLimits
6779
+ * @operationId SecurityServiceController_GetDefaultLimits
6780
+ * @summary Get default limits of workspace.
6781
+ * @request GET:/security/limits/default
6782
+ * @response `200` OK
6783
+ */
6784
+
6785
+ }, {
6786
+ key: "getDefaultLimits",
6787
+ value: function getDefaultLimits() {
6788
+ return this.http.get("/security/limits/default").json();
6789
+ }
6732
6790
  }]);
6733
6791
 
6734
6792
  return SecurityService;