@evergis/api 5.0.39 → 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/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).text();
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 = JSON.parse(await this.getConfiguration(query));
1434
+ const config = await this.getConfiguration(query);
1439
1435
  this.updateClientSettings(config);
1440
1436
  return config;
1441
1437
  }
@@ -2339,20 +2335,6 @@ class ImportService extends Service {
2339
2335
  readPart(query) {
2340
2336
  return this.http.get(`/import/read`, query).json();
2341
2337
  }
2342
- /**
2343
- * No description
2344
- *
2345
- * @tags ImportService
2346
- * @name GetExternalWmsLayers
2347
- * @operationId ImportServiceController_GetExternalWmsLayers
2348
- * @summary Get list of external WMS layers.
2349
- * @request GET:/import/wms
2350
- * @secure
2351
- * @response `200` OK
2352
- */
2353
- getExternalWmsLayers(query) {
2354
- return this.http.get(`/import/wms`, query).json();
2355
- }
2356
2338
  /**
2357
2339
  * No description
2358
2340
  *
@@ -2749,34 +2731,6 @@ class DataSourceService extends Service {
2749
2731
  updateSparkDataSource(data) {
2750
2732
  return this.http.patch(`/ds/spark`, data).then(() => { });
2751
2733
  }
2752
- /**
2753
- * No description
2754
- *
2755
- * @tags DataSource
2756
- * @name CreateArcGisDataSource1
2757
- * @operationId DataSourceController_CreateArcGisDataSource_1
2758
- * @summary Create WMS data source.
2759
- * @request POST:/ds/wms
2760
- * @secure
2761
- * @response `200` OK
2762
- */
2763
- createArcGisDataSource1(data) {
2764
- return this.http.post(`/ds/wms`, data).then(() => { });
2765
- }
2766
- /**
2767
- * No description
2768
- *
2769
- * @tags DataSource
2770
- * @name UpdateArcGisDataSource1
2771
- * @operationId DataSourceController_UpdateArcGisDataSource_1
2772
- * @summary Update WMS data source.
2773
- * @request PATCH:/ds/wms
2774
- * @secure
2775
- * @response `200` OK
2776
- */
2777
- updateArcGisDataSource1(data) {
2778
- return this.http.patch(`/ds/wms`, data).then(() => { });
2779
- }
2780
2734
  }
2781
2735
 
2782
2736
  /* eslint-disable */
@@ -4095,7 +4049,7 @@ class Names {
4095
4049
  class PortalSettings extends ClientSettingsService {
4096
4050
  config = null;
4097
4051
  async fetchPortalSettings(query) {
4098
- this.config = JSON.parse(await this.getConfiguration(query));
4052
+ this.config = await this.getConfiguration(query);
4099
4053
  return this.config;
4100
4054
  }
4101
4055
  }
@@ -4459,8 +4413,8 @@ class RemoteTaskManagerService extends Service {
4459
4413
  * @secure
4460
4414
  * @response `200` OK
4461
4415
  */
4462
- get1() {
4463
- return this.http.get(`/scheduler/worker`).json();
4416
+ get1(query) {
4417
+ return this.http.get(`/scheduler/worker`, query).json();
4464
4418
  }
4465
4419
  /**
4466
4420
  * No description