@evergis/api 5.0.39 → 5.0.41
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__/ClientSettingsService.d.ts +1 -1
- package/dist/__generated__/DataSourceService.d.ts +1 -25
- package/dist/__generated__/ImportService.d.ts +1 -13
- package/dist/__generated__/RemoteTaskManagerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +7 -68
- package/dist/api.esm.js +6 -52
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +6 -52
- package/dist/index.js.map +1 -1
- package/dist/services/ClientSettings.d.ts +3 -12
- package/dist/services/PortalSettings.d.ts +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Everpoint
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Everpoint
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# @evergis/api
|
|
2
|
-
|
|
3
|
-
Библиотека API.
|
|
4
|
-
|
|
5
|
-
### Генерирование API
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
$ yarn generate
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы,
|
|
12
|
-
размещенные в директории `src/__generated__`!
|
|
1
|
+
# @evergis/api
|
|
2
|
+
|
|
3
|
+
Библиотека API.
|
|
4
|
+
|
|
5
|
+
### Генерирование API
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
$ yarn generate
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы,
|
|
12
|
+
размещенные в директории `src/__generated__`!
|
|
@@ -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
|
|
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,
|
|
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).
|
|
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 =
|
|
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 =
|
|
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
|
|
4415
|
+
get1(query) {
|
|
4416
|
+
return this.http.get(`/scheduler/worker`, query).json();
|
|
4463
4417
|
}
|
|
4464
4418
|
/**
|
|
4465
4419
|
* No description
|