@evergis/api 4.0.16 → 4.0.18

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
@@ -852,7 +852,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
852
852
  * @tags Catalog
853
853
  * @name PatchResource
854
854
  * @operationId CatalogController_PatchResource
855
- * @summary Update directory.
855
+ * @summary Update resource.
856
856
  * @request PATCH:/resources/{resourceId}
857
857
  * @secure
858
858
  * @response `200` OK
@@ -921,7 +921,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
921
921
  * @name CreateFile
922
922
  * @operationId CatalogController_CreateFile
923
923
  * @summary Create new file.
924
- * @request POST:/resources/file
924
+ * @request PATCH:/resources/file
925
925
  * @secure
926
926
  * @response `200` OK
927
927
  */
@@ -929,6 +929,23 @@ let CatalogService = /*#__PURE__*/function (_Service) {
929
929
  }, {
930
930
  key: "createFile",
931
931
  value: function createFile(data) {
932
+ return this.http.patch("/resources/file", toFormData(data)).json();
933
+ }
934
+ /**
935
+ * No description
936
+ *
937
+ * @tags Catalog
938
+ * @name CreateFile1
939
+ * @operationId CatalogController_CreateFile_1
940
+ * @summary Create new file.
941
+ * @request POST:/resources/file
942
+ * @secure
943
+ * @response `200` OK
944
+ */
945
+
946
+ }, {
947
+ key: "createFile1",
948
+ value: function createFile1(data) {
932
949
  return this.http.post("/resources/file", toFormData(data)).json();
933
950
  }
934
951
  /**
@@ -986,18 +1003,18 @@ let CatalogService = /*#__PURE__*/function (_Service) {
986
1003
  * No description
987
1004
  *
988
1005
  * @tags Catalog
989
- * @name DownloadFile
990
- * @operationId CatalogController_DownloadFile
1006
+ * @name GetFile
1007
+ * @operationId CatalogController_GetFile
991
1008
  * @summary Download file.
992
- * @request GET:/resources/{resourceId}/download
1009
+ * @request GET:/resources/file/{resourceId}
993
1010
  * @secure
994
1011
  * @response `200` OK
995
1012
  */
996
1013
 
997
1014
  }, {
998
- key: "downloadFile",
999
- value: function downloadFile(resourceId) {
1000
- return this.http.get("/resources/" + resourceId + "/download").blob();
1015
+ key: "getFile",
1016
+ value: function getFile(resourceId) {
1017
+ return this.http.get("/resources/file/" + resourceId).blob();
1001
1018
  }
1002
1019
  /**
1003
1020
  * No description
@@ -2958,11 +2975,16 @@ let FileUpload = /*#__PURE__*/function (_CatalogService) {
2958
2975
  _createClass(FileUpload, [{
2959
2976
  key: "upload",
2960
2977
  value: function upload(file, rewrite) {
2961
- return this.createFile({
2978
+ return this.createFile1({
2962
2979
  file,
2963
2980
  rewrite: !!rewrite
2964
2981
  });
2965
2982
  }
2983
+ }, {
2984
+ key: "replaceFile",
2985
+ value: function replaceFile(params) {
2986
+ return this.createFile(params);
2987
+ }
2966
2988
  }]);
2967
2989
 
2968
2990
  return FileUpload;
@@ -3522,6 +3544,23 @@ let LayersService = /*#__PURE__*/function (_Service) {
3522
3544
  value: function getBulkExtents(query, data) {
3523
3545
  return this.http.post("/bulk/layers/extent", data, query).json();
3524
3546
  }
3547
+ /**
3548
+ * No description
3549
+ *
3550
+ * @tags Layers
3551
+ * @name GetFilteredFeaturesCount
3552
+ * @operationId LayersController_GetFilteredFeaturesCount
3553
+ * @summary Returns list of features count according layer filter.
3554
+ * @request POST:/bulk/layers/features/count
3555
+ * @secure
3556
+ * @response `200` OK
3557
+ */
3558
+
3559
+ }, {
3560
+ key: "getFilteredFeaturesCount",
3561
+ value: function getFilteredFeaturesCount(data) {
3562
+ return this.http.post("/bulk/layers/features/count", data).json();
3563
+ }
3525
3564
  /**
3526
3565
  * No description
3527
3566
  *
@@ -4290,8 +4329,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4290
4329
  * No description
4291
4330
  *
4292
4331
  * @tags Layers
4293
- * @name GetFilteredFeaturesCount
4294
- * @operationId LayersController_GetFilteredFeaturesCount
4332
+ * @name GetFilteredFeaturesCount1
4333
+ * @operationId LayersController_GetFilteredFeaturesCount_1
4295
4334
  * @summary Get features count according layer filter of the given name.
4296
4335
  * @request GET:/layers/{name}/features/count
4297
4336
  * @secure
@@ -4299,8 +4338,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4299
4338
  */
4300
4339
 
4301
4340
  }, {
4302
- key: "getFilteredFeaturesCount",
4303
- value: function getFilteredFeaturesCount(_ref16) {
4341
+ key: "getFilteredFeaturesCount1",
4342
+ value: function getFilteredFeaturesCount1(_ref16) {
4304
4343
  let {
4305
4344
  name
4306
4345
  } = _ref16,
@@ -4312,8 +4351,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4312
4351
  * No description
4313
4352
  *
4314
4353
  * @tags Layers
4315
- * @name GetFilteredFeaturesCount1
4316
- * @operationId LayersController_GetFilteredFeaturesCount_1
4354
+ * @name GetFilteredFeaturesCount2
4355
+ * @operationId LayersController_GetFilteredFeaturesCount_2
4317
4356
  * @summary Get features count according layer filter of the given name.
4318
4357
  * @request POST:/layers/{name}/features/count
4319
4358
  * @secure
@@ -4321,8 +4360,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4321
4360
  */
4322
4361
 
4323
4362
  }, {
4324
- key: "getFilteredFeaturesCount1",
4325
- value: function getFilteredFeaturesCount1(name, data) {
4363
+ key: "getFilteredFeaturesCount2",
4364
+ value: function getFilteredFeaturesCount2(name, data) {
4326
4365
  return this.http.post("/layers/" + name + "/features/count", data).json();
4327
4366
  }
4328
4367
  /**
@@ -6176,7 +6215,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6176
6215
  * @name OldCheckLimits
6177
6216
  * @operationId SecurityServiceController_OldCheckLimits
6178
6217
  * @summary Get limits of workspace.
6179
- * @request GET:/security/checkLimits
6218
+ * @request GET:/resources/checkLimits
6180
6219
  * @secure
6181
6220
  * @response `200` OK
6182
6221
  */
@@ -6184,7 +6223,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6184
6223
  }, {
6185
6224
  key: "oldCheckLimits",
6186
6225
  value: function oldCheckLimits() {
6187
- return this.http.get("/security/checkLimits").json();
6226
+ return this.http.get("/resources/checkLimits").json();
6188
6227
  }
6189
6228
  /**
6190
6229
  * No description
@@ -6193,7 +6232,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6193
6232
  * @name OldCheckLimits1
6194
6233
  * @operationId SecurityServiceController_OldCheckLimits_1
6195
6234
  * @summary Get limits of workspace.
6196
- * @request GET:/security/checkLimits/{userName}
6235
+ * @request GET:/resources/checkLimits/{userName}
6197
6236
  * @secure
6198
6237
  * @response `200` OK
6199
6238
  */
@@ -6201,7 +6240,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6201
6240
  }, {
6202
6241
  key: "oldCheckLimits1",
6203
6242
  value: function oldCheckLimits1(userName) {
6204
- return this.http.get("/security/checkLimits/" + userName).json();
6243
+ return this.http.get("/resources/checkLimits/" + userName).json();
6205
6244
  }
6206
6245
  /**
6207
6246
  * No description
@@ -7568,7 +7607,7 @@ var AuthorizationGrant;
7568
7607
  /**
7569
7608
  *
7570
7609
 
7571
- None
7610
+ Directory
7572
7611
 
7573
7612
  Map
7574
7613
 
@@ -7587,7 +7626,7 @@ DataSource
7587
7626
  var CatalogResourceType;
7588
7627
 
7589
7628
  (function (CatalogResourceType) {
7590
- CatalogResourceType["None"] = "None";
7629
+ CatalogResourceType["Directory"] = "Directory";
7591
7630
  CatalogResourceType["Map"] = "Map";
7592
7631
  CatalogResourceType["Layer"] = "Layer";
7593
7632
  CatalogResourceType["Table"] = "Table";