@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.
@@ -3412,7 +3412,7 @@ const _excluded$3 = ["name"],
3412
3412
  _excluded5$1 = ["name", "id"],
3413
3413
  _excluded6$1 = ["name", "id"],
3414
3414
  _excluded7 = ["name", "x", "y", "z"],
3415
- _excluded8 = ["name"],
3415
+ _excluded8 = ["name", "x", "y", "z", "format"],
3416
3416
  _excluded9 = ["name"],
3417
3417
  _excluded10 = ["name"],
3418
3418
  _excluded11 = ["name"],
@@ -3423,8 +3423,9 @@ const _excluded$3 = ["name"],
3423
3423
  _excluded16 = ["name"],
3424
3424
  _excluded17 = ["name"],
3425
3425
  _excluded18 = ["name"],
3426
- _excluded19 = ["layerName"],
3427
- _excluded20 = ["name", "id"];
3426
+ _excluded19 = ["name"],
3427
+ _excluded20 = ["layerName"],
3428
+ _excluded21 = ["name", "id"];
3428
3429
  /**
3429
3430
  * @title Spatial Processing Core API
3430
3431
  * @version 1.5.1.0
@@ -4129,6 +4130,31 @@ let LayersService = /*#__PURE__*/function (_Service) {
4129
4130
 
4130
4131
  return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
4131
4132
  }
4133
+ /**
4134
+ * No description
4135
+ *
4136
+ * @tags Layers
4137
+ * @name GetTilesLayerImageWithFormat
4138
+ * @operationId LayersController_GetTilesLayerImageWithFormat
4139
+ * @summary Render tile with input indexes.
4140
+ * @request GET:/layers/{name}/tile/{z}/{x}/{y}.{format}
4141
+ * @response `200` OK
4142
+ */
4143
+
4144
+ }, {
4145
+ key: "getTilesLayerImageWithFormat",
4146
+ value: function getTilesLayerImageWithFormat(_ref8) {
4147
+ let {
4148
+ name,
4149
+ x,
4150
+ y,
4151
+ z,
4152
+ format
4153
+ } = _ref8,
4154
+ query = _objectWithoutPropertiesLoose(_ref8, _excluded8);
4155
+
4156
+ return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y + "." + format, query);
4157
+ }
4132
4158
  /**
4133
4159
  * No description
4134
4160
  *
@@ -4142,11 +4168,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4142
4168
 
4143
4169
  }, {
4144
4170
  key: "getLayerImage",
4145
- value: function getLayerImage(_ref8) {
4171
+ value: function getLayerImage(_ref9) {
4146
4172
  let {
4147
4173
  name
4148
- } = _ref8,
4149
- query = _objectWithoutPropertiesLoose(_ref8, _excluded8);
4174
+ } = _ref9,
4175
+ query = _objectWithoutPropertiesLoose(_ref9, _excluded9);
4150
4176
 
4151
4177
  return this.http.createUrl("/layers/" + name + "/export", query);
4152
4178
  }
@@ -4163,11 +4189,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4163
4189
 
4164
4190
  }, {
4165
4191
  key: "getLayerExtent",
4166
- value: function getLayerExtent(_ref9) {
4192
+ value: function getLayerExtent(_ref10) {
4167
4193
  let {
4168
4194
  name
4169
- } = _ref9,
4170
- query = _objectWithoutPropertiesLoose(_ref9, _excluded9);
4195
+ } = _ref10,
4196
+ query = _objectWithoutPropertiesLoose(_ref10, _excluded10);
4171
4197
 
4172
4198
  return this.http.get("/layers/" + name + "/extent", query).json();
4173
4199
  }
@@ -4184,11 +4210,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4184
4210
 
4185
4211
  }, {
4186
4212
  key: "getByGeometry",
4187
- value: function getByGeometry(_ref10) {
4213
+ value: function getByGeometry(_ref11) {
4188
4214
  let {
4189
4215
  name
4190
- } = _ref10,
4191
- query = _objectWithoutPropertiesLoose(_ref10, _excluded10);
4216
+ } = _ref11,
4217
+ query = _objectWithoutPropertiesLoose(_ref11, _excluded11);
4192
4218
 
4193
4219
  return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
4194
4220
  }
@@ -4205,11 +4231,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4205
4231
 
4206
4232
  }, {
4207
4233
  key: "getByGeometryPost",
4208
- value: function getByGeometryPost(_ref11, data) {
4234
+ value: function getByGeometryPost(_ref12, data) {
4209
4235
  let {
4210
4236
  name
4211
- } = _ref11,
4212
- query = _objectWithoutPropertiesLoose(_ref11, _excluded11);
4237
+ } = _ref12,
4238
+ query = _objectWithoutPropertiesLoose(_ref12, _excluded12);
4213
4239
 
4214
4240
  return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
4215
4241
  }
@@ -4226,11 +4252,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4226
4252
 
4227
4253
  }, {
4228
4254
  key: "deleteFeatures",
4229
- value: function deleteFeatures(_ref12) {
4255
+ value: function deleteFeatures(_ref13) {
4230
4256
  let {
4231
4257
  name
4232
- } = _ref12,
4233
- query = _objectWithoutPropertiesLoose(_ref12, _excluded12);
4258
+ } = _ref13,
4259
+ query = _objectWithoutPropertiesLoose(_ref13, _excluded13);
4234
4260
 
4235
4261
  return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
4236
4262
  }
@@ -4247,11 +4273,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4247
4273
 
4248
4274
  }, {
4249
4275
  key: "deleteByCondition",
4250
- value: function deleteByCondition(_ref13) {
4276
+ value: function deleteByCondition(_ref14) {
4251
4277
  let {
4252
4278
  name
4253
- } = _ref13,
4254
- query = _objectWithoutPropertiesLoose(_ref13, _excluded13);
4279
+ } = _ref14,
4280
+ query = _objectWithoutPropertiesLoose(_ref14, _excluded14);
4255
4281
 
4256
4282
  return this.http.delete("/layers/" + name + "/features/deleteByCondition", null, query).json();
4257
4283
  }
@@ -4268,11 +4294,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4268
4294
 
4269
4295
  }, {
4270
4296
  key: "getByGeometryGet",
4271
- value: function getByGeometryGet(_ref14) {
4297
+ value: function getByGeometryGet(_ref15) {
4272
4298
  let {
4273
4299
  name
4274
- } = _ref14,
4275
- query = _objectWithoutPropertiesLoose(_ref14, _excluded14);
4300
+ } = _ref15,
4301
+ query = _objectWithoutPropertiesLoose(_ref15, _excluded15);
4276
4302
 
4277
4303
  return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
4278
4304
  }
@@ -4289,11 +4315,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4289
4315
 
4290
4316
  }, {
4291
4317
  key: "classify",
4292
- value: function classify(_ref15) {
4318
+ value: function classify(_ref16) {
4293
4319
  let {
4294
4320
  name
4295
- } = _ref15,
4296
- query = _objectWithoutPropertiesLoose(_ref15, _excluded15);
4321
+ } = _ref16,
4322
+ query = _objectWithoutPropertiesLoose(_ref16, _excluded16);
4297
4323
 
4298
4324
  return this.http.get("/layers/" + name + "/classify", query).json();
4299
4325
  }
@@ -4310,11 +4336,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4310
4336
 
4311
4337
  }, {
4312
4338
  key: "distincts",
4313
- value: function distincts(_ref16) {
4339
+ value: function distincts(_ref17) {
4314
4340
  let {
4315
4341
  name
4316
- } = _ref16,
4317
- query = _objectWithoutPropertiesLoose(_ref16, _excluded16);
4342
+ } = _ref17,
4343
+ query = _objectWithoutPropertiesLoose(_ref17, _excluded17);
4318
4344
 
4319
4345
  return this.http.get("/layers/" + name + "/distincts", query).json();
4320
4346
  }
@@ -4331,11 +4357,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4331
4357
 
4332
4358
  }, {
4333
4359
  key: "aggregateAttribute",
4334
- value: function aggregateAttribute(_ref17) {
4360
+ value: function aggregateAttribute(_ref18) {
4335
4361
  let {
4336
4362
  name
4337
- } = _ref17,
4338
- query = _objectWithoutPropertiesLoose(_ref17, _excluded17);
4363
+ } = _ref18,
4364
+ query = _objectWithoutPropertiesLoose(_ref18, _excluded18);
4339
4365
 
4340
4366
  return this.http.get("/layers/" + name + "/aggregate-values", query).json();
4341
4367
  }
@@ -4352,11 +4378,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4352
4378
 
4353
4379
  }, {
4354
4380
  key: "getFilteredFeaturesCount",
4355
- value: function getFilteredFeaturesCount(_ref18) {
4381
+ value: function getFilteredFeaturesCount(_ref19) {
4356
4382
  let {
4357
4383
  name
4358
- } = _ref18,
4359
- query = _objectWithoutPropertiesLoose(_ref18, _excluded18);
4384
+ } = _ref19,
4385
+ query = _objectWithoutPropertiesLoose(_ref19, _excluded19);
4360
4386
 
4361
4387
  return this.http.get("/layers/" + name + "/features/count", query).json();
4362
4388
  }
@@ -4422,11 +4448,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
4422
4448
 
4423
4449
  }, {
4424
4450
  key: "validateExpression",
4425
- value: function validateExpression(_ref19) {
4451
+ value: function validateExpression(_ref20) {
4426
4452
  let {
4427
4453
  layerName
4428
- } = _ref19,
4429
- query = _objectWithoutPropertiesLoose(_ref19, _excluded19);
4454
+ } = _ref20,
4455
+ query = _objectWithoutPropertiesLoose(_ref20, _excluded20);
4430
4456
 
4431
4457
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
4432
4458
  }
@@ -4443,12 +4469,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
4443
4469
 
4444
4470
  }, {
4445
4471
  key: "getRasterMeta",
4446
- value: function getRasterMeta(_ref20) {
4472
+ value: function getRasterMeta(_ref21) {
4447
4473
  let {
4448
4474
  name,
4449
4475
  id
4450
- } = _ref20,
4451
- query = _objectWithoutPropertiesLoose(_ref20, _excluded20);
4476
+ } = _ref21,
4477
+ query = _objectWithoutPropertiesLoose(_ref21, _excluded21);
4452
4478
 
4453
4479
  return this.http.get("/layers/" + name + "/" + id + "/metadata", query).json();
4454
4480
  }
@@ -5760,6 +5786,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
5760
5786
  value: function getTilesLayerImage(name, x, y, z) {
5761
5787
  return this.http.createUrl("/projects/" + name + "/tile/" + z + "/" + x + "/" + y);
5762
5788
  }
5789
+ /**
5790
+ * No description
5791
+ *
5792
+ * @tags Projects
5793
+ * @name GetTilesLayerImageWithFormat
5794
+ * @operationId ProjectsController_GetTilesLayerImageWithFormat
5795
+ * @summary Render tile.
5796
+ * @request GET:/projects/{name}/tile/{z}/{x}/{y}.{format}
5797
+ * @response `200` OK
5798
+ */
5799
+
5800
+ }, {
5801
+ key: "getTilesLayerImageWithFormat",
5802
+ value: function getTilesLayerImageWithFormat(name, x, y, z, format) {
5803
+ return this.http.createUrl("/projects/" + name + "/tile/" + z + "/" + x + "/" + y + "." + format);
5804
+ }
5763
5805
  /**
5764
5806
  * No description
5765
5807
  *
@@ -6435,53 +6477,8 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
6435
6477
  }
6436
6478
 
6437
6479
  _createClass(ResourceCatalogService, [{
6438
- key: "checkLimitsForUser",
6480
+ key: "copyResources",
6439
6481
  value:
6440
- /**
6441
- * No description
6442
- *
6443
- * @tags ResourceCatalog
6444
- * @name CheckLimitsForUser
6445
- * @operationId ResourceCatalogController_CheckLimitsForUser
6446
- * @summary Get limits of workspace.
6447
- * @request GET:/resources/checkLimits/user/{userName}
6448
- * @response `200` OK
6449
- */
6450
- function checkLimitsForUser(userName) {
6451
- return this.http.get("/resources/checkLimits/user/" + userName).json();
6452
- }
6453
- /**
6454
- * No description
6455
- *
6456
- * @tags ResourceCatalog
6457
- * @name CheckLimitsForRole
6458
- * @operationId ResourceCatalogController_CheckLimitsForRole
6459
- * @summary Get limits of workspace.
6460
- * @request GET:/resources/checkLimits/role/{roleName}
6461
- * @response `200` OK
6462
- */
6463
-
6464
- }, {
6465
- key: "checkLimitsForRole",
6466
- value: function checkLimitsForRole(roleName) {
6467
- return this.http.get("/resources/checkLimits/role/" + roleName).json();
6468
- }
6469
- /**
6470
- * No description
6471
- *
6472
- * @tags ResourceCatalog
6473
- * @name GetDefaultLimits
6474
- * @operationId ResourceCatalogController_GetDefaultLimits
6475
- * @summary Get default limits of workspace.
6476
- * @request GET:/resources/checkLimits/default
6477
- * @response `200` OK
6478
- */
6479
-
6480
- }, {
6481
- key: "getDefaultLimits",
6482
- value: function getDefaultLimits() {
6483
- return this.http.get("/resources/checkLimits/default").json();
6484
- }
6485
6482
  /**
6486
6483
  * No description
6487
6484
  *
@@ -6492,10 +6489,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
6492
6489
  * @request POST:/resources/copy
6493
6490
  * @response `200` OK
6494
6491
  */
6495
-
6496
- }, {
6497
- key: "copyResources",
6498
- value: function copyResources(data) {
6492
+ function copyResources(data) {
6499
6493
  return this.http.post("/resources/copy", data).json();
6500
6494
  }
6501
6495
  }]);
@@ -6631,8 +6625,21 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6631
6625
  }
6632
6626
 
6633
6627
  _createClass(SecurityService, [{
6634
- key: "findUserByNameByRoles",
6628
+ key: "setPolicies",
6635
6629
  value:
6630
+ /**
6631
+ * @description This method requires superuser permission.
6632
+ *
6633
+ * @tags SecurityService
6634
+ * @name SetPolicies
6635
+ * @operationId SecurityServiceController_SetPolicies
6636
+ * @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.
6637
+ * @request POST:/bulk/security/policies
6638
+ * @response `200` OK
6639
+ */
6640
+ function setPolicies(data) {
6641
+ return this.http.post("/bulk/security/policies", data).then(() => {});
6642
+ }
6636
6643
  /**
6637
6644
  * No description
6638
6645
  *
@@ -6643,7 +6650,10 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6643
6650
  * @request GET:/security/findUsersWithRoles
6644
6651
  * @response `200` OK
6645
6652
  */
6646
- function findUserByNameByRoles(query) {
6653
+
6654
+ }, {
6655
+ key: "findUserByNameByRoles",
6656
+ value: function findUserByNameByRoles(query) {
6647
6657
  return this.http.get("/security/findUsersWithRoles", query).json();
6648
6658
  }
6649
6659
  /**
@@ -6726,6 +6736,54 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6726
6736
  value: function setPolicy(data) {
6727
6737
  return this.http.post("/security/policies", data).then(() => {});
6728
6738
  }
6739
+ /**
6740
+ * No description
6741
+ *
6742
+ * @tags SecurityService
6743
+ * @name CheckLimitsForUser
6744
+ * @operationId SecurityServiceController_CheckLimitsForUser
6745
+ * @summary Get limits of workspace.
6746
+ * @request GET:/security/limits/user/{userName}
6747
+ * @response `200` OK
6748
+ */
6749
+
6750
+ }, {
6751
+ key: "checkLimitsForUser",
6752
+ value: function checkLimitsForUser(userName) {
6753
+ return this.http.get("/security/limits/user/" + userName).json();
6754
+ }
6755
+ /**
6756
+ * No description
6757
+ *
6758
+ * @tags SecurityService
6759
+ * @name CheckLimitsForRole
6760
+ * @operationId SecurityServiceController_CheckLimitsForRole
6761
+ * @summary Get limits of workspace.
6762
+ * @request GET:/security/limits/role/{roleName}
6763
+ * @response `200` OK
6764
+ */
6765
+
6766
+ }, {
6767
+ key: "checkLimitsForRole",
6768
+ value: function checkLimitsForRole(roleName) {
6769
+ return this.http.get("/security/limits/role/" + roleName).json();
6770
+ }
6771
+ /**
6772
+ * No description
6773
+ *
6774
+ * @tags SecurityService
6775
+ * @name GetDefaultLimits
6776
+ * @operationId SecurityServiceController_GetDefaultLimits
6777
+ * @summary Get default limits of workspace.
6778
+ * @request GET:/security/limits/default
6779
+ * @response `200` OK
6780
+ */
6781
+
6782
+ }, {
6783
+ key: "getDefaultLimits",
6784
+ value: function getDefaultLimits() {
6785
+ return this.http.get("/security/limits/default").json();
6786
+ }
6729
6787
  }]);
6730
6788
 
6731
6789
  return SecurityService;