@evergis/api 4.1.8 → 4.1.11
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 +11 -11
- package/dist/__generated__/CatalogService.d.ts +1 -1
- package/dist/__generated__/EqlService.d.ts +62 -2
- package/dist/__generated__/LayersService.d.ts +0 -12
- package/dist/__generated__/ProjectsService.d.ts +9 -9
- package/dist/__generated__/VectorTileService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +278 -2
- package/dist/api.esm.js +138 -58
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +137 -57
- package/dist/index.js.map +1 -1
- package/dist/services/Account.d.ts +3 -3
- package/package.json +2 -2
- package/dist/ExtendedHttpClient.d.ts +0 -5
package/dist/api.esm.js
CHANGED
|
@@ -616,12 +616,12 @@ class CatalogService extends Service {
|
|
|
616
616
|
* @name MoveResource
|
|
617
617
|
* @operationId CatalogController_MoveResource
|
|
618
618
|
* @summary Rename resource with given id.
|
|
619
|
-
* @request POST:/resources/{resourceId}
|
|
619
|
+
* @request POST:/resources/move/{resourceId}
|
|
620
620
|
* @secure
|
|
621
621
|
* @response `200` OK
|
|
622
622
|
*/
|
|
623
623
|
moveResource(resourceId, data) {
|
|
624
|
-
return this.http.post(`/resources/${resourceId}
|
|
624
|
+
return this.http.post(`/resources/move/${resourceId}`, data).json();
|
|
625
625
|
}
|
|
626
626
|
/**
|
|
627
627
|
* No description
|
|
@@ -789,6 +789,17 @@ class EventEmitter {
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
+
const getUserInfo = () => JSON.parse(localStorage.getItem(API_USER_INFO_KEY) || "null") || void 0;
|
|
793
|
+
const updateUserInfo = (newUserInfo) => {
|
|
794
|
+
if (newUserInfo) {
|
|
795
|
+
const oldUserInfo = getUserInfo();
|
|
796
|
+
localStorage.setItem(API_USER_INFO_KEY, JSON.stringify({ ...oldUserInfo, ...newUserInfo }));
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
localStorage.removeItem(API_USER_INFO_KEY);
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
|
|
792
803
|
/* eslint-disable */
|
|
793
804
|
/* tslint:disable */
|
|
794
805
|
/*
|
|
@@ -1396,19 +1407,24 @@ class AccountService extends Service {
|
|
|
1396
1407
|
}
|
|
1397
1408
|
}
|
|
1398
1409
|
|
|
1399
|
-
const getUserInfo = () => JSON.parse(localStorage.getItem(API_USER_INFO_KEY) || "null") || void 0;
|
|
1400
|
-
const updateUserInfo = (newUserInfo) => {
|
|
1401
|
-
if (newUserInfo) {
|
|
1402
|
-
const oldUserInfo = getUserInfo();
|
|
1403
|
-
localStorage.setItem(API_USER_INFO_KEY, JSON.stringify({ ...oldUserInfo, ...newUserInfo }));
|
|
1404
|
-
}
|
|
1405
|
-
else {
|
|
1406
|
-
localStorage.removeItem(API_USER_INFO_KEY);
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
1410
|
class Account extends AccountService {
|
|
1411
1411
|
userInfo;
|
|
1412
|
+
get username() {
|
|
1413
|
+
return this.userInfo?.username || "";
|
|
1414
|
+
}
|
|
1415
|
+
get isAuth() {
|
|
1416
|
+
return !!this.userInfo?.username && this.userInfo.username !== "public";
|
|
1417
|
+
}
|
|
1418
|
+
get user() {
|
|
1419
|
+
if (this.userInfo) {
|
|
1420
|
+
return this.userInfo;
|
|
1421
|
+
}
|
|
1422
|
+
const userInfo = getUserInfo();
|
|
1423
|
+
if (userInfo) {
|
|
1424
|
+
this.userInfo = userInfo;
|
|
1425
|
+
}
|
|
1426
|
+
return userInfo;
|
|
1427
|
+
}
|
|
1412
1428
|
async login(params, authParams = {}, useJwt = false) {
|
|
1413
1429
|
if (params) {
|
|
1414
1430
|
const response = await super.authenticate(authParams, params);
|
|
@@ -1422,9 +1438,6 @@ class Account extends AccountService {
|
|
|
1422
1438
|
this.userInfo = await this.getUserInfo();
|
|
1423
1439
|
return this.userInfo;
|
|
1424
1440
|
}
|
|
1425
|
-
get username() {
|
|
1426
|
-
return this.userInfo?.username || "";
|
|
1427
|
-
}
|
|
1428
1441
|
async logout() {
|
|
1429
1442
|
const token = window.localStorage.getItem(STORAGE_TOKEN_KEY);
|
|
1430
1443
|
if (token) {
|
|
@@ -1445,19 +1458,6 @@ class Account extends AccountService {
|
|
|
1445
1458
|
setPassword(password) {
|
|
1446
1459
|
return this.setUserPassword({ username: this.username, password });
|
|
1447
1460
|
}
|
|
1448
|
-
get isAuth() {
|
|
1449
|
-
return !!this.userInfo?.username && this.userInfo.username !== "public";
|
|
1450
|
-
}
|
|
1451
|
-
get user() {
|
|
1452
|
-
if (this.userInfo) {
|
|
1453
|
-
return this.userInfo;
|
|
1454
|
-
}
|
|
1455
|
-
const userInfo = getUserInfo();
|
|
1456
|
-
if (userInfo) {
|
|
1457
|
-
this.userInfo = userInfo;
|
|
1458
|
-
}
|
|
1459
|
-
return userInfo;
|
|
1460
|
-
}
|
|
1461
1461
|
}
|
|
1462
1462
|
|
|
1463
1463
|
/* eslint-disable */
|
|
@@ -1856,8 +1856,8 @@ class EqlService extends Service {
|
|
|
1856
1856
|
* @secure
|
|
1857
1857
|
* @response `200` OK
|
|
1858
1858
|
*/
|
|
1859
|
-
getPagedQueryResult(data) {
|
|
1860
|
-
return this.http.post(`/eql/query`, data).json();
|
|
1859
|
+
getPagedQueryResult(query, data) {
|
|
1860
|
+
return this.http.post(`/eql/query`, data, query).json();
|
|
1861
1861
|
}
|
|
1862
1862
|
/**
|
|
1863
1863
|
* No description
|
|
@@ -1873,6 +1873,34 @@ class EqlService extends Service {
|
|
|
1873
1873
|
getQueryDescription(data) {
|
|
1874
1874
|
return this.http.post(`/eql/description`, data).json();
|
|
1875
1875
|
}
|
|
1876
|
+
/**
|
|
1877
|
+
* No description
|
|
1878
|
+
*
|
|
1879
|
+
* @tags Eql
|
|
1880
|
+
* @name GetVectorTile
|
|
1881
|
+
* @operationId EqlController_GetVectorTile
|
|
1882
|
+
* @summary Get vector tile by query.
|
|
1883
|
+
* @request GET:/eql/vt/{z}/{x}/{y}.pbf
|
|
1884
|
+
* @secure
|
|
1885
|
+
* @response `200` OK
|
|
1886
|
+
*/
|
|
1887
|
+
getVectorTile({ z, x, y, ...query }) {
|
|
1888
|
+
return this.http.get(`/eql/vt/{z}/{x}/{y}.pbf`, query).then(() => { });
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
* No description
|
|
1892
|
+
*
|
|
1893
|
+
* @tags Eql
|
|
1894
|
+
* @name GetQueryHistory
|
|
1895
|
+
* @operationId EqlController_GetQueryHistory
|
|
1896
|
+
* @summary Get EQL requests history.
|
|
1897
|
+
* @request GET:/eql/query/history
|
|
1898
|
+
* @secure
|
|
1899
|
+
* @response `200` OK
|
|
1900
|
+
*/
|
|
1901
|
+
getQueryHistory(query) {
|
|
1902
|
+
return this.http.get(`/eql/query/history`, query).json();
|
|
1903
|
+
}
|
|
1876
1904
|
/**
|
|
1877
1905
|
* No description
|
|
1878
1906
|
*
|
|
@@ -1957,6 +1985,48 @@ class EqlService extends Service {
|
|
|
1957
1985
|
getAvailiableLayerParameters(query) {
|
|
1958
1986
|
return this.http.get(`/eql/getAvailiableParams`, query).json();
|
|
1959
1987
|
}
|
|
1988
|
+
/**
|
|
1989
|
+
* No description
|
|
1990
|
+
*
|
|
1991
|
+
* @tags Eql
|
|
1992
|
+
* @name Get
|
|
1993
|
+
* @operationId EqlController_Get
|
|
1994
|
+
* @summary Returns the query by its id.
|
|
1995
|
+
* @request GET:/eql/query/{id}
|
|
1996
|
+
* @secure
|
|
1997
|
+
* @response `200` OK
|
|
1998
|
+
*/
|
|
1999
|
+
get(id) {
|
|
2000
|
+
return this.http.get(`/eql/query/${id}`).json();
|
|
2001
|
+
}
|
|
2002
|
+
/**
|
|
2003
|
+
* No description
|
|
2004
|
+
*
|
|
2005
|
+
* @tags Eql
|
|
2006
|
+
* @name Update
|
|
2007
|
+
* @operationId EqlController_Update
|
|
2008
|
+
* @summary Replaces a query and gives it a new id.
|
|
2009
|
+
* @request POST:/eql/query/{id}
|
|
2010
|
+
* @secure
|
|
2011
|
+
* @response `200` OK
|
|
2012
|
+
*/
|
|
2013
|
+
update(id, data) {
|
|
2014
|
+
return this.http.post(`/eql/query/${id}`, data).then(() => { });
|
|
2015
|
+
}
|
|
2016
|
+
/**
|
|
2017
|
+
* No description
|
|
2018
|
+
*
|
|
2019
|
+
* @tags Eql
|
|
2020
|
+
* @name Create
|
|
2021
|
+
* @operationId EqlController_Create
|
|
2022
|
+
* @summary Creates a new query.
|
|
2023
|
+
* @request POST:/eql/query/save
|
|
2024
|
+
* @secure
|
|
2025
|
+
* @response `200` OK
|
|
2026
|
+
*/
|
|
2027
|
+
create(data) {
|
|
2028
|
+
return this.http.post(`/eql/query/save`, data).text();
|
|
2029
|
+
}
|
|
1960
2030
|
}
|
|
1961
2031
|
|
|
1962
2032
|
class Eql extends EqlService {
|
|
@@ -3020,20 +3090,6 @@ class LayersService extends Service {
|
|
|
3020
3090
|
validateExpression({ layerName, ...query }) {
|
|
3021
3091
|
return this.http.get(`/layers/${layerName}/validateExpression`, query).json();
|
|
3022
3092
|
}
|
|
3023
|
-
/**
|
|
3024
|
-
* No description
|
|
3025
|
-
*
|
|
3026
|
-
* @tags Layers
|
|
3027
|
-
* @name FlipCoordinates
|
|
3028
|
-
* @operationId LayersController_FlipCoordinates
|
|
3029
|
-
* @summary Flip geometry coordinates.
|
|
3030
|
-
* @request POST:/layers/{layerName}/flip-coordinates
|
|
3031
|
-
* @secure
|
|
3032
|
-
* @response `200` OK
|
|
3033
|
-
*/
|
|
3034
|
-
flipCoordinates(layerName) {
|
|
3035
|
-
return this.http.post(`/layers/${layerName}/flip-coordinates`, null).json();
|
|
3036
|
-
}
|
|
3037
3093
|
/**
|
|
3038
3094
|
* No description
|
|
3039
3095
|
*
|
|
@@ -3589,12 +3645,12 @@ class ProjectsService extends Service {
|
|
|
3589
3645
|
* @name PatchProjectConfiguration
|
|
3590
3646
|
* @operationId ProjectsController_PatchProjectConfiguration
|
|
3591
3647
|
* @summary Applies partial updates using JSON Patch.
|
|
3592
|
-
* @request PATCH:/projects/{name}/configuration
|
|
3648
|
+
* @request PATCH:/projects/{name}/configuration
|
|
3593
3649
|
* @secure
|
|
3594
3650
|
* @response `200` OK
|
|
3595
3651
|
*/
|
|
3596
|
-
patchProjectConfiguration(name,
|
|
3597
|
-
return this.http.patch(`/projects/${name}/configuration
|
|
3652
|
+
patchProjectConfiguration({ name, ...query }, data) {
|
|
3653
|
+
return this.http.patch(`/projects/${name}/configuration`, data, query).json();
|
|
3598
3654
|
}
|
|
3599
3655
|
/**
|
|
3600
3656
|
* No description
|
|
@@ -3603,12 +3659,12 @@ class ProjectsService extends Service {
|
|
|
3603
3659
|
* @name PutProjectConfiguration
|
|
3604
3660
|
* @operationId ProjectsController_PutProjectConfiguration
|
|
3605
3661
|
* @summary Creates or updates configuration (full replacement).
|
|
3606
|
-
* @request PUT:/projects/{name}/configuration
|
|
3662
|
+
* @request PUT:/projects/{name}/configuration
|
|
3607
3663
|
* @secure
|
|
3608
3664
|
* @response `200` OK
|
|
3609
3665
|
*/
|
|
3610
|
-
putProjectConfiguration(name,
|
|
3611
|
-
return this.http.put(`/projects/${name}/configuration
|
|
3666
|
+
putProjectConfiguration({ name, ...query }, data) {
|
|
3667
|
+
return this.http.put(`/projects/${name}/configuration`, data, query).json();
|
|
3612
3668
|
}
|
|
3613
3669
|
/**
|
|
3614
3670
|
* No description
|
|
@@ -3617,12 +3673,12 @@ class ProjectsService extends Service {
|
|
|
3617
3673
|
* @name GetProjectConfiguration
|
|
3618
3674
|
* @operationId ProjectsController_GetProjectConfiguration
|
|
3619
3675
|
* @summary Gets configuration for a resource and type.
|
|
3620
|
-
* @request GET:/projects/{name}/configuration
|
|
3676
|
+
* @request GET:/projects/{name}/configuration
|
|
3621
3677
|
* @secure
|
|
3622
3678
|
* @response `200` OK
|
|
3623
3679
|
*/
|
|
3624
|
-
getProjectConfiguration(name,
|
|
3625
|
-
return this.http.get(`/projects/${name}/configuration
|
|
3680
|
+
getProjectConfiguration({ name, ...query }) {
|
|
3681
|
+
return this.http.get(`/projects/${name}/configuration`, query).json();
|
|
3626
3682
|
}
|
|
3627
3683
|
/**
|
|
3628
3684
|
* No description
|
|
@@ -3631,12 +3687,12 @@ class ProjectsService extends Service {
|
|
|
3631
3687
|
* @name DeleteProjectConfiguration
|
|
3632
3688
|
* @operationId ProjectsController_DeleteProjectConfiguration
|
|
3633
3689
|
* @summary Creates or updates configuration (full replacement).
|
|
3634
|
-
* @request DELETE:/projects/{name}/configuration
|
|
3690
|
+
* @request DELETE:/projects/{name}/configuration
|
|
3635
3691
|
* @secure
|
|
3636
3692
|
* @response `200` OK
|
|
3637
3693
|
*/
|
|
3638
|
-
deleteProjectConfiguration(name,
|
|
3639
|
-
return this.http.delete(`/projects/${name}/configuration
|
|
3694
|
+
deleteProjectConfiguration({ name, ...query }) {
|
|
3695
|
+
return this.http.delete(`/projects/${name}/configuration`, null, query).json();
|
|
3640
3696
|
}
|
|
3641
3697
|
/**
|
|
3642
3698
|
* No description
|
|
@@ -5288,6 +5344,27 @@ var ConfigurationType;
|
|
|
5288
5344
|
/**
|
|
5289
5345
|
*
|
|
5290
5346
|
|
|
5347
|
+
Json
|
|
5348
|
+
|
|
5349
|
+
Csv
|
|
5350
|
+
|
|
5351
|
+
Orc
|
|
5352
|
+
|
|
5353
|
+
Parquet
|
|
5354
|
+
|
|
5355
|
+
Jdbc
|
|
5356
|
+
*/
|
|
5357
|
+
var DataSourceConnectionType;
|
|
5358
|
+
(function (DataSourceConnectionType) {
|
|
5359
|
+
DataSourceConnectionType["Json"] = "Json";
|
|
5360
|
+
DataSourceConnectionType["Csv"] = "Csv";
|
|
5361
|
+
DataSourceConnectionType["Orc"] = "Orc";
|
|
5362
|
+
DataSourceConnectionType["Parquet"] = "Parquet";
|
|
5363
|
+
DataSourceConnectionType["Jdbc"] = "Jdbc";
|
|
5364
|
+
})(DataSourceConnectionType || (DataSourceConnectionType = {}));
|
|
5365
|
+
/**
|
|
5366
|
+
*
|
|
5367
|
+
|
|
5291
5368
|
Postgres
|
|
5292
5369
|
|
|
5293
5370
|
Trino
|
|
@@ -5297,6 +5374,8 @@ S3
|
|
|
5297
5374
|
GisServer
|
|
5298
5375
|
|
|
5299
5376
|
Spark
|
|
5377
|
+
|
|
5378
|
+
Archive
|
|
5300
5379
|
*/
|
|
5301
5380
|
var DataSourceType;
|
|
5302
5381
|
(function (DataSourceType) {
|
|
@@ -5305,6 +5384,7 @@ var DataSourceType;
|
|
|
5305
5384
|
DataSourceType["S3"] = "S3";
|
|
5306
5385
|
DataSourceType["GisServer"] = "GisServer";
|
|
5307
5386
|
DataSourceType["Spark"] = "Spark";
|
|
5387
|
+
DataSourceType["Archive"] = "Archive";
|
|
5308
5388
|
})(DataSourceType || (DataSourceType = {}));
|
|
5309
5389
|
/**
|
|
5310
5390
|
* Type of the error.
|
|
@@ -5751,5 +5831,5 @@ var WorkerSettingsFieldType;
|
|
|
5751
5831
|
WorkerSettingsFieldType["AttributeArray"] = "AttributeArray";
|
|
5752
5832
|
})(WorkerSettingsFieldType || (WorkerSettingsFieldType = {}));
|
|
5753
5833
|
|
|
5754
|
-
export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, Cameras, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConfigurationType, ConnectionStatus, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, GeometryType, Group, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, Quality, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
|
|
5834
|
+
export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, Cameras, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConfigurationType, ConnectionStatus, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, GeometryType, Group, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, Quality, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
|
|
5755
5835
|
//# sourceMappingURL=api.esm.js.map
|