@evergis/api 4.1.17 → 4.1.19
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/__generated__/CatalogService.d.ts +25 -1
- package/dist/__generated__/LayersService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +65 -4
- package/dist/api.esm.js +54 -5
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +53 -4
- package/dist/index.js.map +1 -1
- package/dist/services/FileUpload.d.ts +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1589,6 +1589,20 @@ class CatalogService extends Service {
|
|
|
1589
1589
|
getResourceByPath(path) {
|
|
1590
1590
|
return this.http.get(`/resources/getByPath/${path}`).json();
|
|
1591
1591
|
}
|
|
1592
|
+
/**
|
|
1593
|
+
* No description
|
|
1594
|
+
*
|
|
1595
|
+
* @tags Catalog
|
|
1596
|
+
* @name PostGetResourceByPath
|
|
1597
|
+
* @operationId CatalogController_PostGetResourceByPath
|
|
1598
|
+
* @summary Get resource with given path.
|
|
1599
|
+
* @request POST:/resources/getByPath
|
|
1600
|
+
* @secure
|
|
1601
|
+
* @response `200` OK
|
|
1602
|
+
*/
|
|
1603
|
+
postGetResourceByPath(data) {
|
|
1604
|
+
return this.http.post(`/resources/getByPath`, data).json();
|
|
1605
|
+
}
|
|
1592
1606
|
/**
|
|
1593
1607
|
* No description
|
|
1594
1608
|
*
|
|
@@ -1729,11 +1743,25 @@ class CatalogService extends Service {
|
|
|
1729
1743
|
copyResources(data) {
|
|
1730
1744
|
return this.http.post(`/resources/copy`, data).json();
|
|
1731
1745
|
}
|
|
1746
|
+
/**
|
|
1747
|
+
* No description
|
|
1748
|
+
*
|
|
1749
|
+
* @tags Catalog
|
|
1750
|
+
* @name ExtractZipArchive
|
|
1751
|
+
* @operationId CatalogController_ExtractZipArchive
|
|
1752
|
+
* @summary Extract zip archive.
|
|
1753
|
+
* @request POST:/resources/zip/extract
|
|
1754
|
+
* @secure
|
|
1755
|
+
* @response `200` OK
|
|
1756
|
+
*/
|
|
1757
|
+
extractZipArchive(data) {
|
|
1758
|
+
return this.http.post(`/resources/zip/extract`, data).then(() => { });
|
|
1759
|
+
}
|
|
1732
1760
|
}
|
|
1733
1761
|
|
|
1734
1762
|
class FileUpload extends CatalogService {
|
|
1735
|
-
upload(file, rewrite) {
|
|
1736
|
-
return this.createFile1({ file, rewrite: !!rewrite });
|
|
1763
|
+
upload(file, rewrite, parentId, fileName) {
|
|
1764
|
+
return this.createFile1({ file, rewrite: !!rewrite, parentId, fileName });
|
|
1737
1765
|
}
|
|
1738
1766
|
replaceFile(params) {
|
|
1739
1767
|
return this.createFile(params);
|
|
@@ -3149,8 +3177,8 @@ class LayersService extends Service {
|
|
|
3149
3177
|
* @secure
|
|
3150
3178
|
* @response `200` OK
|
|
3151
3179
|
*/
|
|
3152
|
-
createFeatures(name, data) {
|
|
3153
|
-
return this.http.post(`/layers/${name}/features`, data).json();
|
|
3180
|
+
createFeatures({ name, ...query }, data) {
|
|
3181
|
+
return this.http.post(`/layers/${name}/features`, data, query).json();
|
|
3154
3182
|
}
|
|
3155
3183
|
/**
|
|
3156
3184
|
* No description
|
|
@@ -5373,6 +5401,24 @@ exports.ConfigurationType = void 0;
|
|
|
5373
5401
|
/**
|
|
5374
5402
|
*
|
|
5375
5403
|
|
|
5404
|
+
Skip
|
|
5405
|
+
|
|
5406
|
+
Overwrite
|
|
5407
|
+
|
|
5408
|
+
GenerateUnique
|
|
5409
|
+
|
|
5410
|
+
ThrowError
|
|
5411
|
+
*/
|
|
5412
|
+
exports.ConflictResolutionStrategy = void 0;
|
|
5413
|
+
(function (ConflictResolutionStrategy) {
|
|
5414
|
+
ConflictResolutionStrategy["Skip"] = "Skip";
|
|
5415
|
+
ConflictResolutionStrategy["Overwrite"] = "Overwrite";
|
|
5416
|
+
ConflictResolutionStrategy["GenerateUnique"] = "GenerateUnique";
|
|
5417
|
+
ConflictResolutionStrategy["ThrowError"] = "ThrowError";
|
|
5418
|
+
})(exports.ConflictResolutionStrategy || (exports.ConflictResolutionStrategy = {}));
|
|
5419
|
+
/**
|
|
5420
|
+
*
|
|
5421
|
+
|
|
5376
5422
|
Json
|
|
5377
5423
|
|
|
5378
5424
|
Csv
|
|
@@ -5690,6 +5736,8 @@ File
|
|
|
5690
5736
|
DataSource
|
|
5691
5737
|
|
|
5692
5738
|
TaskPrototype
|
|
5739
|
+
|
|
5740
|
+
Directory
|
|
5693
5741
|
*/
|
|
5694
5742
|
exports.ResourceTypeFilter = void 0;
|
|
5695
5743
|
(function (ResourceTypeFilter) {
|
|
@@ -5702,6 +5750,7 @@ exports.ResourceTypeFilter = void 0;
|
|
|
5702
5750
|
ResourceTypeFilter["File"] = "File";
|
|
5703
5751
|
ResourceTypeFilter["DataSource"] = "DataSource";
|
|
5704
5752
|
ResourceTypeFilter["TaskPrototype"] = "TaskPrototype";
|
|
5753
|
+
ResourceTypeFilter["Directory"] = "Directory";
|
|
5705
5754
|
})(exports.ResourceTypeFilter || (exports.ResourceTypeFilter = {}));
|
|
5706
5755
|
exports.ResourceTypeLink = void 0;
|
|
5707
5756
|
(function (ResourceTypeLink) {
|