@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.
@@ -858,7 +858,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
858
858
  * @tags Catalog
859
859
  * @name PatchResource
860
860
  * @operationId CatalogController_PatchResource
861
- * @summary Update directory.
861
+ * @summary Update resource.
862
862
  * @request PATCH:/resources/{resourceId}
863
863
  * @secure
864
864
  * @response `200` OK
@@ -927,7 +927,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
927
927
  * @name CreateFile
928
928
  * @operationId CatalogController_CreateFile
929
929
  * @summary Create new file.
930
- * @request POST:/resources/file
930
+ * @request PATCH:/resources/file
931
931
  * @secure
932
932
  * @response `200` OK
933
933
  */
@@ -935,6 +935,23 @@ let CatalogService = /*#__PURE__*/function (_Service) {
935
935
  }, {
936
936
  key: "createFile",
937
937
  value: function createFile(data) {
938
+ return this.http.patch("/resources/file", toFormData(data)).json();
939
+ }
940
+ /**
941
+ * No description
942
+ *
943
+ * @tags Catalog
944
+ * @name CreateFile1
945
+ * @operationId CatalogController_CreateFile_1
946
+ * @summary Create new file.
947
+ * @request POST:/resources/file
948
+ * @secure
949
+ * @response `200` OK
950
+ */
951
+
952
+ }, {
953
+ key: "createFile1",
954
+ value: function createFile1(data) {
938
955
  return this.http.post("/resources/file", toFormData(data)).json();
939
956
  }
940
957
  /**
@@ -992,18 +1009,18 @@ let CatalogService = /*#__PURE__*/function (_Service) {
992
1009
  * No description
993
1010
  *
994
1011
  * @tags Catalog
995
- * @name DownloadFile
996
- * @operationId CatalogController_DownloadFile
1012
+ * @name GetFile
1013
+ * @operationId CatalogController_GetFile
997
1014
  * @summary Download file.
998
- * @request GET:/resources/{resourceId}/download
1015
+ * @request GET:/resources/file/{resourceId}
999
1016
  * @secure
1000
1017
  * @response `200` OK
1001
1018
  */
1002
1019
 
1003
1020
  }, {
1004
- key: "downloadFile",
1005
- value: function downloadFile(resourceId) {
1006
- return this.http.get("/resources/" + resourceId + "/download").blob();
1021
+ key: "getFile",
1022
+ value: function getFile(resourceId) {
1023
+ return this.http.get("/resources/file/" + resourceId).blob();
1007
1024
  }
1008
1025
  /**
1009
1026
  * No description
@@ -2962,11 +2979,16 @@ let FileUpload = /*#__PURE__*/function (_CatalogService) {
2962
2979
  _createClass(FileUpload, [{
2963
2980
  key: "upload",
2964
2981
  value: function upload(file, rewrite) {
2965
- return this.createFile({
2982
+ return this.createFile1({
2966
2983
  file,
2967
2984
  rewrite: !!rewrite
2968
2985
  });
2969
2986
  }
2987
+ }, {
2988
+ key: "replaceFile",
2989
+ value: function replaceFile(params) {
2990
+ return this.createFile(params);
2991
+ }
2970
2992
  }]);
2971
2993
 
2972
2994
  return FileUpload;
@@ -3526,6 +3548,23 @@ let LayersService = /*#__PURE__*/function (_Service) {
3526
3548
  value: function getBulkExtents(query, data) {
3527
3549
  return this.http.post("/bulk/layers/extent", data, query).json();
3528
3550
  }
3551
+ /**
3552
+ * No description
3553
+ *
3554
+ * @tags Layers
3555
+ * @name GetFilteredFeaturesCount
3556
+ * @operationId LayersController_GetFilteredFeaturesCount
3557
+ * @summary Returns list of features count according layer filter.
3558
+ * @request POST:/bulk/layers/features/count
3559
+ * @secure
3560
+ * @response `200` OK
3561
+ */
3562
+
3563
+ }, {
3564
+ key: "getFilteredFeaturesCount",
3565
+ value: function getFilteredFeaturesCount(data) {
3566
+ return this.http.post("/bulk/layers/features/count", data).json();
3567
+ }
3529
3568
  /**
3530
3569
  * No description
3531
3570
  *
@@ -4294,8 +4333,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4294
4333
  * No description
4295
4334
  *
4296
4335
  * @tags Layers
4297
- * @name GetFilteredFeaturesCount
4298
- * @operationId LayersController_GetFilteredFeaturesCount
4336
+ * @name GetFilteredFeaturesCount1
4337
+ * @operationId LayersController_GetFilteredFeaturesCount_1
4299
4338
  * @summary Get features count according layer filter of the given name.
4300
4339
  * @request GET:/layers/{name}/features/count
4301
4340
  * @secure
@@ -4303,8 +4342,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4303
4342
  */
4304
4343
 
4305
4344
  }, {
4306
- key: "getFilteredFeaturesCount",
4307
- value: function getFilteredFeaturesCount(_ref16) {
4345
+ key: "getFilteredFeaturesCount1",
4346
+ value: function getFilteredFeaturesCount1(_ref16) {
4308
4347
  let {
4309
4348
  name
4310
4349
  } = _ref16,
@@ -4316,8 +4355,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4316
4355
  * No description
4317
4356
  *
4318
4357
  * @tags Layers
4319
- * @name GetFilteredFeaturesCount1
4320
- * @operationId LayersController_GetFilteredFeaturesCount_1
4358
+ * @name GetFilteredFeaturesCount2
4359
+ * @operationId LayersController_GetFilteredFeaturesCount_2
4321
4360
  * @summary Get features count according layer filter of the given name.
4322
4361
  * @request POST:/layers/{name}/features/count
4323
4362
  * @secure
@@ -4325,8 +4364,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
4325
4364
  */
4326
4365
 
4327
4366
  }, {
4328
- key: "getFilteredFeaturesCount1",
4329
- value: function getFilteredFeaturesCount1(name, data) {
4367
+ key: "getFilteredFeaturesCount2",
4368
+ value: function getFilteredFeaturesCount2(name, data) {
4330
4369
  return this.http.post("/layers/" + name + "/features/count", data).json();
4331
4370
  }
4332
4371
  /**
@@ -6173,7 +6212,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6173
6212
  * @name OldCheckLimits
6174
6213
  * @operationId SecurityServiceController_OldCheckLimits
6175
6214
  * @summary Get limits of workspace.
6176
- * @request GET:/security/checkLimits
6215
+ * @request GET:/resources/checkLimits
6177
6216
  * @secure
6178
6217
  * @response `200` OK
6179
6218
  */
@@ -6181,7 +6220,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6181
6220
  }, {
6182
6221
  key: "oldCheckLimits",
6183
6222
  value: function oldCheckLimits() {
6184
- return this.http.get("/security/checkLimits").json();
6223
+ return this.http.get("/resources/checkLimits").json();
6185
6224
  }
6186
6225
  /**
6187
6226
  * No description
@@ -6190,7 +6229,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6190
6229
  * @name OldCheckLimits1
6191
6230
  * @operationId SecurityServiceController_OldCheckLimits_1
6192
6231
  * @summary Get limits of workspace.
6193
- * @request GET:/security/checkLimits/{userName}
6232
+ * @request GET:/resources/checkLimits/{userName}
6194
6233
  * @secure
6195
6234
  * @response `200` OK
6196
6235
  */
@@ -6198,7 +6237,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
6198
6237
  }, {
6199
6238
  key: "oldCheckLimits1",
6200
6239
  value: function oldCheckLimits1(userName) {
6201
- return this.http.get("/security/checkLimits/" + userName).json();
6240
+ return this.http.get("/resources/checkLimits/" + userName).json();
6202
6241
  }
6203
6242
  /**
6204
6243
  * No description
@@ -7434,7 +7473,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7434
7473
  })(exports.AuthorizationGrant || (exports.AuthorizationGrant = {}));
7435
7474
 
7436
7475
  (function (CatalogResourceType) {
7437
- CatalogResourceType["None"] = "None";
7476
+ CatalogResourceType["Directory"] = "Directory";
7438
7477
  CatalogResourceType["Map"] = "Map";
7439
7478
  CatalogResourceType["Layer"] = "Layer";
7440
7479
  CatalogResourceType["Table"] = "Table";