@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.
@@ -29,7 +29,7 @@ export declare class ClientSettingsService extends Service {
29
29
  * @secure
30
30
  * @response `200` OK
31
31
  */
32
- getConfiguration(query: GetConfigurationParams): Promise<string>;
32
+ getConfiguration(query: GetConfigurationParams): Promise<Record<string, any>>;
33
33
  /**
34
34
  * No description
35
35
  *
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { ArcGisDataSourceDc, ArcGisDataSourceInfoDc, GetDataSourcesListParams, MosRuDataSourceDc, MosRuDataSourceInfoDc, PagedListDataSourceInfoDc, PostgresDataSourceDc, PostgresDataSourceInfoDc, S3DataSourceDc, S3DataSourceInfoDc, SparkDataSourceDc, SparkDataSourceInfoDc, WmsDataSourceDc } from './data-contracts';
2
+ import { ArcGisDataSourceDc, ArcGisDataSourceInfoDc, GetDataSourcesListParams, MosRuDataSourceDc, MosRuDataSourceInfoDc, PagedListDataSourceInfoDc, PostgresDataSourceDc, PostgresDataSourceInfoDc, S3DataSourceDc, S3DataSourceInfoDc, SparkDataSourceDc, SparkDataSourceInfoDc } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -210,28 +210,4 @@ export declare class DataSourceService extends Service {
210
210
  * @response `200` OK
211
211
  */
212
212
  updateSparkDataSource(data: SparkDataSourceDc): Promise<void>;
213
- /**
214
- * No description
215
- *
216
- * @tags DataSource
217
- * @name CreateArcGisDataSource1
218
- * @operationId DataSourceController_CreateArcGisDataSource_1
219
- * @summary Create WMS data source.
220
- * @request POST:/ds/wms
221
- * @secure
222
- * @response `200` OK
223
- */
224
- createArcGisDataSource1(data: WmsDataSourceDc): Promise<void>;
225
- /**
226
- * No description
227
- *
228
- * @tags DataSource
229
- * @name UpdateArcGisDataSource1
230
- * @operationId DataSourceController_UpdateArcGisDataSource_1
231
- * @summary Update WMS data source.
232
- * @request PATCH:/ds/wms
233
- * @secure
234
- * @response `200` OK
235
- */
236
- updateArcGisDataSource1(data: WmsDataSourceDc): Promise<void>;
237
213
  }
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { ExternalLayerInfoDc, GetDataSchemaParams, GetExternalArcGisLayersParams, GetExternalArcgisFsLayersParams, GetExternalPbfFeaturesParams, GetExternalPbfLayersParams, GetExternalWmsLayersParams, GetRasterAttributesParams, GetRasterMetaParams, ImportDataSchemaDc, ImportFileFeaturesCountDc, NetCdfMetaDc, PagedFeaturesListDc, RasterMetaDc, ReadPartParams } from './data-contracts';
2
+ import { ExternalLayerInfoDc, GetDataSchemaParams, GetExternalArcGisLayersParams, GetExternalArcgisFsLayersParams, GetExternalPbfFeaturesParams, GetExternalPbfLayersParams, GetRasterAttributesParams, GetRasterMetaParams, ImportDataSchemaDc, ImportFileFeaturesCountDc, NetCdfMetaDc, PagedFeaturesListDc, RasterMetaDc, ReadPartParams } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -43,18 +43,6 @@ export declare class ImportService extends Service {
43
43
  * @response `200` OK
44
44
  */
45
45
  readPart(query: ReadPartParams): Promise<Record<string, any>[]>;
46
- /**
47
- * No description
48
- *
49
- * @tags ImportService
50
- * @name GetExternalWmsLayers
51
- * @operationId ImportServiceController_GetExternalWmsLayers
52
- * @summary Get list of external WMS layers.
53
- * @request GET:/import/wms
54
- * @secure
55
- * @response `200` OK
56
- */
57
- getExternalWmsLayers(query: GetExternalWmsLayersParams): Promise<ExternalLayerInfoDc[]>;
58
46
  /**
59
47
  * No description
60
48
  *
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { ActiveWorkerDc, CreatedTaskResultDto, GetTaskPrototypesParams, GetTaskResourceParams, GetTasksForPrototypeParams, SearchResultsDtoTaskDto, SearchResultsDtoTaskPrototypeDto, SubTasksDto, TaskConfigurationDc, TaskPrototypeDto, TaskResourceCreateDto, TaskResourceUpdateDto, UpdateTaskPrototypeDto, WorkerStartMethodDto } from './data-contracts';
2
+ import { ActiveWorkerDc, CreatedTaskResultDto, Get1Params, GetTaskPrototypesParams, GetTaskResourceParams, GetTasksForPrototypeParams, SearchResultsDtoTaskDto, SearchResultsDtoTaskPrototypeDto, SubTasksDto, TaskConfigurationDc, TaskPrototypeDto, TaskResourceCreateDto, TaskResourceUpdateDto, UpdateTaskPrototypeDto, WorkerStartMethodDto } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -173,7 +173,7 @@ export declare class RemoteTaskManagerService extends Service {
173
173
  * @secure
174
174
  * @response `200` OK
175
175
  */
176
- get1(): Promise<ActiveWorkerDc[]>;
176
+ get1(query: Get1Params): Promise<ActiveWorkerDc[]>;
177
177
  /**
178
178
  * No description
179
179
  *
@@ -4025,18 +4025,6 @@ export type ViewConfigurationDc = TableConfigurationBaseDc & {
4025
4025
  /** TableName. */
4026
4026
  tableName?: string | null;
4027
4027
  };
4028
- /**
4029
- * S3 data source settings.
4030
- */
4031
- export type WmsDataSourceDc = DataSourceDc & {
4032
- type?: DataSourceType;
4033
- /** Endpoint. */
4034
- serviceUrl?: string | null;
4035
- /** Endpoint. */
4036
- params?: Record<string, string | null>;
4037
- /** Endpoint. */
4038
- headers?: Record<string, string | null>;
4039
- };
4040
4028
  export declare enum WorkerMethodType {
4041
4029
  Task = "Task",
4042
4030
  Rest = "Rest",
@@ -4736,10 +4724,6 @@ export interface ReadPartParams {
4736
4724
  */
4737
4725
  Count?: number;
4738
4726
  }
4739
- export interface GetExternalWmsLayersParams {
4740
- /** WMS service url. */
4741
- url?: string;
4742
- }
4743
4727
  export interface GetExternalPbfLayersParams {
4744
4728
  /** PBF service url. */
4745
4729
  url?: string;
@@ -5151,6 +5135,13 @@ export interface GetTaskResourceParams {
5151
5135
  /** Id. */
5152
5136
  id: string;
5153
5137
  }
5138
+ export interface Get1Params {
5139
+ /**
5140
+ * Show hide workers.
5141
+ * @default false
5142
+ */
5143
+ visibleAll?: boolean;
5144
+ }
5154
5145
  export type SetPoliciesPayload = Record<string, PolicyDc[]>;
5155
5146
  export interface FindUserByNameByRolesParams {
5156
5147
  /** Roles. */
@@ -5323,55 +5314,3 @@ export interface GetVectorTileParams2 {
5323
5314
  */
5324
5315
  y: number;
5325
5316
  }
5326
- export interface GetCapabilitiesParams {
5327
- /** Name of the service. */
5328
- Service?: string;
5329
- /** When omitted, server shall return latest supported version. */
5330
- AcceptVersions?: string[];
5331
- /** When omitted or not supported by server, server shall return complete service metadata (Capabilities) document. */
5332
- Sections?: string[];
5333
- /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
5334
- AcceptFormats?: string[];
5335
- }
5336
- export interface GetSharedCapabilitiesParams {
5337
- /** Name of the service. */
5338
- Service?: string;
5339
- /** When omitted, server shall return latest supported version. */
5340
- AcceptVersions?: string[];
5341
- /** When omitted or not supported by server, server shall return complete service metadata (Capabilities) document. */
5342
- Sections?: string[];
5343
- /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
5344
- AcceptFormats?: string[];
5345
- }
5346
- export interface GetPublicCapabilitiesParams {
5347
- /** Name of the service. */
5348
- Service?: string;
5349
- /** When omitted, server shall return latest supported version. */
5350
- AcceptVersions?: string[];
5351
- /** When omitted or not supported by server, server shall return complete service metadata (Capabilities) document. */
5352
- Sections?: string[];
5353
- /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
5354
- AcceptFormats?: string[];
5355
- }
5356
- export interface ProcessRequestParams {
5357
- /** Layer name. */
5358
- layer?: string;
5359
- /** wmts version. */
5360
- version?: string;
5361
- /** Request type. */
5362
- request?: string;
5363
- /** Tile matrix. */
5364
- tileMatrix?: string;
5365
- /**
5366
- * Tile row.
5367
- * @format int32
5368
- * @default 0
5369
- */
5370
- tileRow?: number;
5371
- /**
5372
- * Tile col.
5373
- * @format int32
5374
- * @default 0
5375
- */
5376
- tileCol?: number;
5377
- }
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
  }
@@ -2338,20 +2334,6 @@ class ImportService extends Service {
2338
2334
  readPart(query) {
2339
2335
  return this.http.get(`/import/read`, query).json();
2340
2336
  }
2341
- /**
2342
- * No description
2343
- *
2344
- * @tags ImportService
2345
- * @name GetExternalWmsLayers
2346
- * @operationId ImportServiceController_GetExternalWmsLayers
2347
- * @summary Get list of external WMS layers.
2348
- * @request GET:/import/wms
2349
- * @secure
2350
- * @response `200` OK
2351
- */
2352
- getExternalWmsLayers(query) {
2353
- return this.http.get(`/import/wms`, query).json();
2354
- }
2355
2337
  /**
2356
2338
  * No description
2357
2339
  *
@@ -2748,34 +2730,6 @@ class DataSourceService extends Service {
2748
2730
  updateSparkDataSource(data) {
2749
2731
  return this.http.patch(`/ds/spark`, data).then(() => { });
2750
2732
  }
2751
- /**
2752
- * No description
2753
- *
2754
- * @tags DataSource
2755
- * @name CreateArcGisDataSource1
2756
- * @operationId DataSourceController_CreateArcGisDataSource_1
2757
- * @summary Create WMS data source.
2758
- * @request POST:/ds/wms
2759
- * @secure
2760
- * @response `200` OK
2761
- */
2762
- createArcGisDataSource1(data) {
2763
- return this.http.post(`/ds/wms`, data).then(() => { });
2764
- }
2765
- /**
2766
- * No description
2767
- *
2768
- * @tags DataSource
2769
- * @name UpdateArcGisDataSource1
2770
- * @operationId DataSourceController_UpdateArcGisDataSource_1
2771
- * @summary Update WMS data source.
2772
- * @request PATCH:/ds/wms
2773
- * @secure
2774
- * @response `200` OK
2775
- */
2776
- updateArcGisDataSource1(data) {
2777
- return this.http.patch(`/ds/wms`, data).then(() => { });
2778
- }
2779
2733
  }
2780
2734
 
2781
2735
  /* eslint-disable */
@@ -4094,7 +4048,7 @@ class Names {
4094
4048
  class PortalSettings extends ClientSettingsService {
4095
4049
  config = null;
4096
4050
  async fetchPortalSettings(query) {
4097
- this.config = JSON.parse(await this.getConfiguration(query));
4051
+ this.config = await this.getConfiguration(query);
4098
4052
  return this.config;
4099
4053
  }
4100
4054
  }
@@ -4458,8 +4412,8 @@ class RemoteTaskManagerService extends Service {
4458
4412
  * @secure
4459
4413
  * @response `200` OK
4460
4414
  */
4461
- get1() {
4462
- return this.http.get(`/scheduler/worker`).json();
4415
+ get1(query) {
4416
+ return this.http.get(`/scheduler/worker`, query).json();
4463
4417
  }
4464
4418
  /**
4465
4419
  * No description