@evergis/api 5.0.38 → 5.0.40
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/LICENSE +21 -21
- package/README.md +12 -12
- package/dist/__generated__/CatalogService.d.ts +13 -1
- package/dist/__generated__/ClientSettingsService.d.ts +1 -1
- package/dist/__generated__/DataSourceService.d.ts +1 -25
- package/dist/__generated__/ImportService.d.ts +1 -13
- package/dist/__generated__/LayersService.d.ts +6 -6
- package/dist/__generated__/ProjectsService.d.ts +1 -61
- package/dist/__generated__/RemoteTaskManagerService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +102 -253
- package/dist/api.esm.js +22 -126
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +21 -126
- package/dist/index.js.map +1 -1
- package/dist/services/ClientSettings.d.ts +3 -12
- package/dist/services/Layers.d.ts +4 -4
- package/dist/services/PortalSettings.d.ts +1 -1
- package/dist/services/Projects.d.ts +1 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1324,7 +1324,7 @@ class ClientSettingsService extends Service {
|
|
|
1324
1324
|
* @response `200` OK
|
|
1325
1325
|
*/
|
|
1326
1326
|
getConfiguration(query) {
|
|
1327
|
-
return this.http.get(`/settings`, query).
|
|
1327
|
+
return this.http.get(`/settings`, query).json();
|
|
1328
1328
|
}
|
|
1329
1329
|
/**
|
|
1330
1330
|
* No description
|
|
@@ -1429,13 +1429,9 @@ class ClientSettingsService extends Service {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
1431
|
class ClientSettings extends ClientSettingsService {
|
|
1432
|
-
settings = {
|
|
1433
|
-
connection: {
|
|
1434
|
-
url: "",
|
|
1435
|
-
},
|
|
1436
|
-
};
|
|
1432
|
+
settings = {};
|
|
1437
1433
|
async fetchClientSettings(query) {
|
|
1438
|
-
const config =
|
|
1434
|
+
const config = await this.getConfiguration(query);
|
|
1439
1435
|
this.updateClientSettings(config);
|
|
1440
1436
|
return config;
|
|
1441
1437
|
}
|
|
@@ -1871,6 +1867,20 @@ class CatalogService extends Service {
|
|
|
1871
1867
|
deleteResource({ resourceId, ...query }) {
|
|
1872
1868
|
return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
|
|
1873
1869
|
}
|
|
1870
|
+
/**
|
|
1871
|
+
* No description
|
|
1872
|
+
*
|
|
1873
|
+
* @tags Catalog
|
|
1874
|
+
* @name CreateResource
|
|
1875
|
+
* @operationId CatalogController_CreateResource
|
|
1876
|
+
* @summary Create new Everpoint.ResourcesCatalog.Tools.Models.CatalogResourceType.Custom resource.
|
|
1877
|
+
* @request POST:/resources/custom
|
|
1878
|
+
* @secure
|
|
1879
|
+
* @response `200` OK
|
|
1880
|
+
*/
|
|
1881
|
+
createResource(data) {
|
|
1882
|
+
return this.http.post(`/resources/custom`, data).json();
|
|
1883
|
+
}
|
|
1874
1884
|
/**
|
|
1875
1885
|
* No description
|
|
1876
1886
|
*
|
|
@@ -2325,20 +2335,6 @@ class ImportService extends Service {
|
|
|
2325
2335
|
readPart(query) {
|
|
2326
2336
|
return this.http.get(`/import/read`, query).json();
|
|
2327
2337
|
}
|
|
2328
|
-
/**
|
|
2329
|
-
* No description
|
|
2330
|
-
*
|
|
2331
|
-
* @tags ImportService
|
|
2332
|
-
* @name GetExternalWmsLayers
|
|
2333
|
-
* @operationId ImportServiceController_GetExternalWmsLayers
|
|
2334
|
-
* @summary Get list of external WMS layers.
|
|
2335
|
-
* @request GET:/import/wms
|
|
2336
|
-
* @secure
|
|
2337
|
-
* @response `200` OK
|
|
2338
|
-
*/
|
|
2339
|
-
getExternalWmsLayers(query) {
|
|
2340
|
-
return this.http.get(`/import/wms`, query).json();
|
|
2341
|
-
}
|
|
2342
2338
|
/**
|
|
2343
2339
|
* No description
|
|
2344
2340
|
*
|
|
@@ -2735,34 +2731,6 @@ class DataSourceService extends Service {
|
|
|
2735
2731
|
updateSparkDataSource(data) {
|
|
2736
2732
|
return this.http.patch(`/ds/spark`, data).then(() => { });
|
|
2737
2733
|
}
|
|
2738
|
-
/**
|
|
2739
|
-
* No description
|
|
2740
|
-
*
|
|
2741
|
-
* @tags DataSource
|
|
2742
|
-
* @name CreateArcGisDataSource1
|
|
2743
|
-
* @operationId DataSourceController_CreateArcGisDataSource_1
|
|
2744
|
-
* @summary Create WMS data source.
|
|
2745
|
-
* @request POST:/ds/wms
|
|
2746
|
-
* @secure
|
|
2747
|
-
* @response `200` OK
|
|
2748
|
-
*/
|
|
2749
|
-
createArcGisDataSource1(data) {
|
|
2750
|
-
return this.http.post(`/ds/wms`, data).then(() => { });
|
|
2751
|
-
}
|
|
2752
|
-
/**
|
|
2753
|
-
* No description
|
|
2754
|
-
*
|
|
2755
|
-
* @tags DataSource
|
|
2756
|
-
* @name UpdateArcGisDataSource1
|
|
2757
|
-
* @operationId DataSourceController_UpdateArcGisDataSource_1
|
|
2758
|
-
* @summary Update WMS data source.
|
|
2759
|
-
* @request PATCH:/ds/wms
|
|
2760
|
-
* @secure
|
|
2761
|
-
* @response `200` OK
|
|
2762
|
-
*/
|
|
2763
|
-
updateArcGisDataSource1(data) {
|
|
2764
|
-
return this.http.patch(`/ds/wms`, data).then(() => { });
|
|
2765
|
-
}
|
|
2766
2734
|
}
|
|
2767
2735
|
|
|
2768
2736
|
/* eslint-disable */
|
|
@@ -3260,6 +3228,7 @@ exports.CatalogResourceType = void 0;
|
|
|
3260
3228
|
CatalogResourceType["File"] = "File";
|
|
3261
3229
|
CatalogResourceType["TaskPrototype"] = "TaskPrototype";
|
|
3262
3230
|
CatalogResourceType["DataSource"] = "DataSource";
|
|
3231
|
+
CatalogResourceType["Custom"] = "Custom";
|
|
3263
3232
|
})(exports.CatalogResourceType || (exports.CatalogResourceType = {}));
|
|
3264
3233
|
exports.ClassificationType = void 0;
|
|
3265
3234
|
(function (ClassificationType) {
|
|
@@ -4080,7 +4049,7 @@ class Names {
|
|
|
4080
4049
|
class PortalSettings extends ClientSettingsService {
|
|
4081
4050
|
config = null;
|
|
4082
4051
|
async fetchPortalSettings(query) {
|
|
4083
|
-
this.config =
|
|
4052
|
+
this.config = await this.getConfiguration(query);
|
|
4084
4053
|
return this.config;
|
|
4085
4054
|
}
|
|
4086
4055
|
}
|
|
@@ -4172,76 +4141,6 @@ class ProjectsService extends Service {
|
|
|
4172
4141
|
getProjectsInfo(query) {
|
|
4173
4142
|
return this.http.get(`/projects/batchInfo`, query).json();
|
|
4174
4143
|
}
|
|
4175
|
-
/**
|
|
4176
|
-
* No description
|
|
4177
|
-
*
|
|
4178
|
-
* @tags Projects
|
|
4179
|
-
* @name GetProjectEnvelope
|
|
4180
|
-
* @operationId ProjectsController_GetProjectEnvelope
|
|
4181
|
-
* @summary Get project extent.
|
|
4182
|
-
* @request GET:/projects/{name}/extent
|
|
4183
|
-
* @secure
|
|
4184
|
-
* @response `200` OK
|
|
4185
|
-
*/
|
|
4186
|
-
getProjectEnvelope({ name, ...query }) {
|
|
4187
|
-
return this.http.get(`/projects/${name}/extent`, query).json();
|
|
4188
|
-
}
|
|
4189
|
-
/**
|
|
4190
|
-
* No description
|
|
4191
|
-
*
|
|
4192
|
-
* @tags Projects
|
|
4193
|
-
* @name GetProjectLayersExtendedInfo
|
|
4194
|
-
* @operationId ProjectsController_GetProjectLayersExtendedInfo
|
|
4195
|
-
* @summary Gets extended project info with layers info.
|
|
4196
|
-
* @request GET:/projects/{name}/extended-info
|
|
4197
|
-
* @secure
|
|
4198
|
-
* @response `200` OK
|
|
4199
|
-
*/
|
|
4200
|
-
getProjectLayersExtendedInfo(name) {
|
|
4201
|
-
return this.http.get(`/projects/${name}/extended-info`).json();
|
|
4202
|
-
}
|
|
4203
|
-
/**
|
|
4204
|
-
* No description
|
|
4205
|
-
*
|
|
4206
|
-
* @tags Projects
|
|
4207
|
-
* @name GetTilesLayerImage
|
|
4208
|
-
* @operationId ProjectsController_GetTilesLayerImage
|
|
4209
|
-
* @summary Render tile.
|
|
4210
|
-
* @request GET:/projects/{name}/tile/{z}/{x}/{y}
|
|
4211
|
-
* @secure
|
|
4212
|
-
* @response `200` OK
|
|
4213
|
-
*/
|
|
4214
|
-
getTilesLayerImage(name, x, y, z) {
|
|
4215
|
-
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}`);
|
|
4216
|
-
}
|
|
4217
|
-
/**
|
|
4218
|
-
* No description
|
|
4219
|
-
*
|
|
4220
|
-
* @tags Projects
|
|
4221
|
-
* @name GetTilesLayerImageWithFormat
|
|
4222
|
-
* @operationId ProjectsController_GetTilesLayerImageWithFormat
|
|
4223
|
-
* @summary Render tile.
|
|
4224
|
-
* @request GET:/projects/{name}/tile/{z}/{x}/{y}.{format}
|
|
4225
|
-
* @secure
|
|
4226
|
-
* @response `200` OK
|
|
4227
|
-
*/
|
|
4228
|
-
getTilesLayerImageWithFormat(name, x, y, z, format) {
|
|
4229
|
-
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}.${format}`);
|
|
4230
|
-
}
|
|
4231
|
-
/**
|
|
4232
|
-
* No description
|
|
4233
|
-
*
|
|
4234
|
-
* @tags Projects
|
|
4235
|
-
* @name GetTilesLayerImageWithFormatAndDpi
|
|
4236
|
-
* @operationId ProjectsController_GetTilesLayerImageWithFormatAndDpi
|
|
4237
|
-
* @summary Render tile.
|
|
4238
|
-
* @request GET:/projects/{name}/tile/{z}/{x}/{y}@{dpi}x.{format}
|
|
4239
|
-
* @secure
|
|
4240
|
-
* @response `200` OK
|
|
4241
|
-
*/
|
|
4242
|
-
getTilesLayerImageWithFormatAndDpi(name, x, y, z, dpi, format) {
|
|
4243
|
-
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}@${dpi}x.${format}`);
|
|
4244
|
-
}
|
|
4245
4144
|
/**
|
|
4246
4145
|
* No description
|
|
4247
4146
|
*
|
|
@@ -4303,9 +4202,6 @@ class Projects extends ProjectsService {
|
|
|
4303
4202
|
return this.updateProject(resource.name, resource);
|
|
4304
4203
|
}
|
|
4305
4204
|
}
|
|
4306
|
-
function isProjectContentItems(v) {
|
|
4307
|
-
return v !== null && v !== undefined;
|
|
4308
|
-
}
|
|
4309
4205
|
|
|
4310
4206
|
/* eslint-disable */
|
|
4311
4207
|
/* tslint:disable */
|
|
@@ -4517,8 +4413,8 @@ class RemoteTaskManagerService extends Service {
|
|
|
4517
4413
|
* @secure
|
|
4518
4414
|
* @response `200` OK
|
|
4519
4415
|
*/
|
|
4520
|
-
get1() {
|
|
4521
|
-
return this.http.get(`/scheduler/worker
|
|
4416
|
+
get1(query) {
|
|
4417
|
+
return this.http.get(`/scheduler/worker`, query).json();
|
|
4522
4418
|
}
|
|
4523
4419
|
/**
|
|
4524
4420
|
* No description
|
|
@@ -5290,7 +5186,6 @@ exports.generateId = generateId;
|
|
|
5290
5186
|
exports.getFetchingUrlPath = getFetchingUrlPath;
|
|
5291
5187
|
exports.isHTTPError = isHTTPError;
|
|
5292
5188
|
exports.isHandledError = isHandledError;
|
|
5293
|
-
exports.isProjectContentItems = isProjectContentItems;
|
|
5294
5189
|
exports.isString = isString;
|
|
5295
5190
|
exports.isTileLayerService = isTileLayerService;
|
|
5296
5191
|
exports.parseJwt = parseJwt;
|