@evergis/api 4.0.15 → 4.0.17

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
  /**
@@ -999,6 +1016,23 @@ let CatalogService = /*#__PURE__*/function (_Service) {
999
1016
  value: function downloadFile(resourceId) {
1000
1017
  return this.http.get("/resources/" + resourceId + "/download").blob();
1001
1018
  }
1019
+ /**
1020
+ * No description
1021
+ *
1022
+ * @tags Catalog
1023
+ * @name GetFile
1024
+ * @operationId CatalogController_GetFile
1025
+ * @summary Download file.
1026
+ * @request GET:/resources/file/{resourceId}
1027
+ * @secure
1028
+ * @response `200` OK
1029
+ */
1030
+
1031
+ }, {
1032
+ key: "getFile",
1033
+ value: function getFile(resourceId) {
1034
+ return this.http.get("/resources/file/" + resourceId).blob();
1035
+ }
1002
1036
  /**
1003
1037
  * No description
1004
1038
  *
@@ -2958,11 +2992,16 @@ let FileUpload = /*#__PURE__*/function (_CatalogService) {
2958
2992
  _createClass(FileUpload, [{
2959
2993
  key: "upload",
2960
2994
  value: function upload(file, rewrite) {
2961
- return this.createFile({
2995
+ return this.createFile1({
2962
2996
  file,
2963
2997
  rewrite: !!rewrite
2964
2998
  });
2965
2999
  }
3000
+ }, {
3001
+ key: "replaceFile",
3002
+ value: function replaceFile(params) {
3003
+ return this.createFile(params);
3004
+ }
2966
3005
  }]);
2967
3006
 
2968
3007
  return FileUpload;
@@ -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";