@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/dist/api.esm.js CHANGED
@@ -1323,7 +1323,7 @@ class ClientSettingsService extends Service {
1323
1323
  * @response `200` OK
1324
1324
  */
1325
1325
  getConfiguration(query) {
1326
- return this.http.get(`/settings`, query).text();
1326
+ return this.http.get(`/settings`, query).json();
1327
1327
  }
1328
1328
  /**
1329
1329
  * No description
@@ -1428,13 +1428,9 @@ class ClientSettingsService extends Service {
1428
1428
  }
1429
1429
 
1430
1430
  class ClientSettings extends ClientSettingsService {
1431
- settings = {
1432
- connection: {
1433
- url: "",
1434
- },
1435
- };
1431
+ settings = {};
1436
1432
  async fetchClientSettings(query) {
1437
- const config = JSON.parse(await this.getConfiguration(query));
1433
+ const config = await this.getConfiguration(query);
1438
1434
  this.updateClientSettings(config);
1439
1435
  return config;
1440
1436
  }
@@ -1870,6 +1866,20 @@ class CatalogService extends Service {
1870
1866
  deleteResource({ resourceId, ...query }) {
1871
1867
  return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
1872
1868
  }
1869
+ /**
1870
+ * No description
1871
+ *
1872
+ * @tags Catalog
1873
+ * @name CreateResource
1874
+ * @operationId CatalogController_CreateResource
1875
+ * @summary Create new Everpoint.ResourcesCatalog.Tools.Models.CatalogResourceType.Custom resource.
1876
+ * @request POST:/resources/custom
1877
+ * @secure
1878
+ * @response `200` OK
1879
+ */
1880
+ createResource(data) {
1881
+ return this.http.post(`/resources/custom`, data).json();
1882
+ }
1873
1883
  /**
1874
1884
  * No description
1875
1885
  *
@@ -2324,20 +2334,6 @@ class ImportService extends Service {
2324
2334
  readPart(query) {
2325
2335
  return this.http.get(`/import/read`, query).json();
2326
2336
  }
2327
- /**
2328
- * No description
2329
- *
2330
- * @tags ImportService
2331
- * @name GetExternalWmsLayers
2332
- * @operationId ImportServiceController_GetExternalWmsLayers
2333
- * @summary Get list of external WMS layers.
2334
- * @request GET:/import/wms
2335
- * @secure
2336
- * @response `200` OK
2337
- */
2338
- getExternalWmsLayers(query) {
2339
- return this.http.get(`/import/wms`, query).json();
2340
- }
2341
2337
  /**
2342
2338
  * No description
2343
2339
  *
@@ -2734,34 +2730,6 @@ class DataSourceService extends Service {
2734
2730
  updateSparkDataSource(data) {
2735
2731
  return this.http.patch(`/ds/spark`, data).then(() => { });
2736
2732
  }
2737
- /**
2738
- * No description
2739
- *
2740
- * @tags DataSource
2741
- * @name CreateArcGisDataSource1
2742
- * @operationId DataSourceController_CreateArcGisDataSource_1
2743
- * @summary Create WMS data source.
2744
- * @request POST:/ds/wms
2745
- * @secure
2746
- * @response `200` OK
2747
- */
2748
- createArcGisDataSource1(data) {
2749
- return this.http.post(`/ds/wms`, data).then(() => { });
2750
- }
2751
- /**
2752
- * No description
2753
- *
2754
- * @tags DataSource
2755
- * @name UpdateArcGisDataSource1
2756
- * @operationId DataSourceController_UpdateArcGisDataSource_1
2757
- * @summary Update WMS data source.
2758
- * @request PATCH:/ds/wms
2759
- * @secure
2760
- * @response `200` OK
2761
- */
2762
- updateArcGisDataSource1(data) {
2763
- return this.http.patch(`/ds/wms`, data).then(() => { });
2764
- }
2765
2733
  }
2766
2734
 
2767
2735
  /* eslint-disable */
@@ -3259,6 +3227,7 @@ var CatalogResourceType;
3259
3227
  CatalogResourceType["File"] = "File";
3260
3228
  CatalogResourceType["TaskPrototype"] = "TaskPrototype";
3261
3229
  CatalogResourceType["DataSource"] = "DataSource";
3230
+ CatalogResourceType["Custom"] = "Custom";
3262
3231
  })(CatalogResourceType || (CatalogResourceType = {}));
3263
3232
  var ClassificationType;
3264
3233
  (function (ClassificationType) {
@@ -4079,7 +4048,7 @@ class Names {
4079
4048
  class PortalSettings extends ClientSettingsService {
4080
4049
  config = null;
4081
4050
  async fetchPortalSettings(query) {
4082
- this.config = JSON.parse(await this.getConfiguration(query));
4051
+ this.config = await this.getConfiguration(query);
4083
4052
  return this.config;
4084
4053
  }
4085
4054
  }
@@ -4171,76 +4140,6 @@ class ProjectsService extends Service {
4171
4140
  getProjectsInfo(query) {
4172
4141
  return this.http.get(`/projects/batchInfo`, query).json();
4173
4142
  }
4174
- /**
4175
- * No description
4176
- *
4177
- * @tags Projects
4178
- * @name GetProjectEnvelope
4179
- * @operationId ProjectsController_GetProjectEnvelope
4180
- * @summary Get project extent.
4181
- * @request GET:/projects/{name}/extent
4182
- * @secure
4183
- * @response `200` OK
4184
- */
4185
- getProjectEnvelope({ name, ...query }) {
4186
- return this.http.get(`/projects/${name}/extent`, query).json();
4187
- }
4188
- /**
4189
- * No description
4190
- *
4191
- * @tags Projects
4192
- * @name GetProjectLayersExtendedInfo
4193
- * @operationId ProjectsController_GetProjectLayersExtendedInfo
4194
- * @summary Gets extended project info with layers info.
4195
- * @request GET:/projects/{name}/extended-info
4196
- * @secure
4197
- * @response `200` OK
4198
- */
4199
- getProjectLayersExtendedInfo(name) {
4200
- return this.http.get(`/projects/${name}/extended-info`).json();
4201
- }
4202
- /**
4203
- * No description
4204
- *
4205
- * @tags Projects
4206
- * @name GetTilesLayerImage
4207
- * @operationId ProjectsController_GetTilesLayerImage
4208
- * @summary Render tile.
4209
- * @request GET:/projects/{name}/tile/{z}/{x}/{y}
4210
- * @secure
4211
- * @response `200` OK
4212
- */
4213
- getTilesLayerImage(name, x, y, z) {
4214
- return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}`);
4215
- }
4216
- /**
4217
- * No description
4218
- *
4219
- * @tags Projects
4220
- * @name GetTilesLayerImageWithFormat
4221
- * @operationId ProjectsController_GetTilesLayerImageWithFormat
4222
- * @summary Render tile.
4223
- * @request GET:/projects/{name}/tile/{z}/{x}/{y}.{format}
4224
- * @secure
4225
- * @response `200` OK
4226
- */
4227
- getTilesLayerImageWithFormat(name, x, y, z, format) {
4228
- return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}.${format}`);
4229
- }
4230
- /**
4231
- * No description
4232
- *
4233
- * @tags Projects
4234
- * @name GetTilesLayerImageWithFormatAndDpi
4235
- * @operationId ProjectsController_GetTilesLayerImageWithFormatAndDpi
4236
- * @summary Render tile.
4237
- * @request GET:/projects/{name}/tile/{z}/{x}/{y}@{dpi}x.{format}
4238
- * @secure
4239
- * @response `200` OK
4240
- */
4241
- getTilesLayerImageWithFormatAndDpi(name, x, y, z, dpi, format) {
4242
- return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}@${dpi}x.${format}`);
4243
- }
4244
4143
  /**
4245
4144
  * No description
4246
4145
  *
@@ -4302,9 +4201,6 @@ class Projects extends ProjectsService {
4302
4201
  return this.updateProject(resource.name, resource);
4303
4202
  }
4304
4203
  }
4305
- function isProjectContentItems(v) {
4306
- return v !== null && v !== undefined;
4307
- }
4308
4204
 
4309
4205
  /* eslint-disable */
4310
4206
  /* tslint:disable */
@@ -4516,8 +4412,8 @@ class RemoteTaskManagerService extends Service {
4516
4412
  * @secure
4517
4413
  * @response `200` OK
4518
4414
  */
4519
- get1() {
4520
- return this.http.get(`/scheduler/worker`).json();
4415
+ get1(query) {
4416
+ return this.http.get(`/scheduler/worker`, query).json();
4521
4417
  }
4522
4418
  /**
4523
4419
  * No description
@@ -5245,5 +5141,5 @@ class VectorTileService extends Service {
5245
5141
  class VectorTiles extends VectorTileService {
5246
5142
  }
5247
5143
 
5248
- export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeConfigurationType, AttributeIconType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, CatalogShare, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigOperationType, ConflictResolutionStrategy, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, History, HttpClient, Import, LayerServiceType, Layers, Names, OgcGeometryType, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, ShareInvitationStatus, SimplifyType, Statistic, StringSubType, TableConfigurationType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
5144
+ export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeConfigurationType, AttributeIconType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, CatalogShare, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigOperationType, ConflictResolutionStrategy, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, History, HttpClient, Import, LayerServiceType, Layers, Names, OgcGeometryType, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, ShareInvitationStatus, SimplifyType, Statistic, StringSubType, TableConfigurationType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
5249
5145
  //# sourceMappingURL=api.esm.js.map