@evergis/api 3.0.205 → 3.0.207
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.d.ts +4 -0
- package/dist/__generated__/DataSourceService.d.ts +5 -5
- package/dist/__generated__/LayersService.d.ts +2 -2
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +84 -14
- package/dist/api.cjs.development.js +112 -1
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +116 -1
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Statistic.d.ts +2 -2
- package/package.json +2 -2
package/dist/Api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { EventEmitter } from '@evergis/event-emitter';
|
|
|
2
2
|
import { Options as KyOptions } from 'ky';
|
|
3
3
|
import { HubConnection } from '@microsoft/signalr';
|
|
4
4
|
import { HttpClient } from './__generated__/HttpClient';
|
|
5
|
+
import { DataSourceService } from './__generated__/DataSourceService';
|
|
5
6
|
import { QueryTokenAccessService } from './__generated__/QueryTokenAccessService';
|
|
6
7
|
import { SpatialReferencesService } from './__generated__/SpatialReferencesService';
|
|
7
8
|
import { UniversalSearchService } from './__generated__/UniversalSearchService';
|
|
@@ -20,6 +21,7 @@ export declare type ApiParams = {
|
|
|
20
21
|
export declare enum UrlPath {
|
|
21
22
|
Base = "/map",
|
|
22
23
|
Shared = "/shared",
|
|
24
|
+
Presentation = "/presentation",
|
|
23
25
|
Portal = "/portal"
|
|
24
26
|
}
|
|
25
27
|
export declare type SocAuthNetwork = 'vk' | 'facebook' | 'google';
|
|
@@ -63,6 +65,7 @@ export declare class Api extends EventEmitter {
|
|
|
63
65
|
readonly eql: Eql;
|
|
64
66
|
readonly catalog: CatalogService;
|
|
65
67
|
readonly queryToken: QueryTokenAccessService;
|
|
68
|
+
readonly dataSource: DataSourceService;
|
|
66
69
|
constructor({ url, wsUrl, wsKeepAlive, snappingHubUrl, http, urlPath, httpOptions, }: ApiParams);
|
|
67
70
|
init({ authParams, authQueryParams, connectWs, initScheduler, fetchSettings, fetchUser, useJwt, }: {
|
|
68
71
|
authParams?: LoginDc;
|
|
@@ -82,4 +85,5 @@ export declare class Api extends EventEmitter {
|
|
|
82
85
|
initScheduler(): Promise<void>;
|
|
83
86
|
private defineUrlPath;
|
|
84
87
|
get isShared(): boolean;
|
|
88
|
+
get isPresentation(): boolean;
|
|
85
89
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateDataSourceDc, DataSourceInfoDc, GetDataSourcesListParams, PagedListDataSourceInfoDc, UpdateDataSourceDc } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -16,7 +16,7 @@ export declare class DataSourceService extends Service {
|
|
|
16
16
|
* @request GET:/ds
|
|
17
17
|
* @response `200` OK
|
|
18
18
|
*/
|
|
19
|
-
getDataSourcesList(query: GetDataSourcesListParams): Promise<
|
|
19
|
+
getDataSourcesList(query: GetDataSourcesListParams): Promise<PagedListDataSourceInfoDc>;
|
|
20
20
|
/**
|
|
21
21
|
* No description
|
|
22
22
|
*
|
|
@@ -27,7 +27,7 @@ export declare class DataSourceService extends Service {
|
|
|
27
27
|
* @request POST:/ds
|
|
28
28
|
* @response `200` OK
|
|
29
29
|
*/
|
|
30
|
-
createDataSource(data:
|
|
30
|
+
createDataSource(data: CreateDataSourceDc): Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
* No description
|
|
33
33
|
*
|
|
@@ -38,7 +38,7 @@ export declare class DataSourceService extends Service {
|
|
|
38
38
|
* @request PATCH:/ds
|
|
39
39
|
* @response `200` OK
|
|
40
40
|
*/
|
|
41
|
-
updateDataSource(data:
|
|
41
|
+
updateDataSource(data: UpdateDataSourceDc): Promise<void>;
|
|
42
42
|
/**
|
|
43
43
|
* No description
|
|
44
44
|
*
|
|
@@ -49,7 +49,7 @@ export declare class DataSourceService extends Service {
|
|
|
49
49
|
* @request GET:/ds/{name}
|
|
50
50
|
* @response `200` OK
|
|
51
51
|
*/
|
|
52
|
-
getDataSource(name: string): Promise<
|
|
52
|
+
getDataSource(name: string): Promise<DataSourceInfoDc>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, FeatureLayerServiceInfoDc, FeaturesContainsParams, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetBulkFeaturesPayload, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams,
|
|
1
|
+
import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, FeatureLayerServiceInfoDc, FeaturesContainsParams, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetBulkFeaturesPayload, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams4, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, ServiceListDc, SetPermissionsBatchPayload, SetPreviewPayload, SimpleSymbolDc, StyleDc, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -589,7 +589,7 @@ export declare class LayersService extends Service {
|
|
|
589
589
|
* @request GET:/layers/{name}/{id}/metadata
|
|
590
590
|
* @response `200` OK
|
|
591
591
|
*/
|
|
592
|
-
getRasterMeta({ name, id, ...query }:
|
|
592
|
+
getRasterMeta({ name, id, ...query }: GetRasterMetaParams4): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
|
|
593
593
|
/**
|
|
594
594
|
* No description
|
|
595
595
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, BulkOperationResultDc,
|
|
1
|
+
import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams1, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ProjectsListDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -49,7 +49,7 @@ export declare class ProjectsService extends Service {
|
|
|
49
49
|
* @request DELETE:/projects
|
|
50
50
|
* @response `200` OK
|
|
51
51
|
*/
|
|
52
|
-
deleteResources(query:
|
|
52
|
+
deleteResources(query: DeleteResourcesParams1): Promise<BulkOperationResultDc[]>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassifyDc,
|
|
1
|
+
import { ClassifyDc, ClassifyParams4, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -38,7 +38,7 @@ export declare class StatisticService extends Service {
|
|
|
38
38
|
* @request GET:/statistics/classify
|
|
39
39
|
* @response `200` OK
|
|
40
40
|
*/
|
|
41
|
-
classify(query:
|
|
41
|
+
classify(query: ClassifyParams4): Promise<ClassifyDc>;
|
|
42
42
|
/**
|
|
43
43
|
* No description
|
|
44
44
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc,
|
|
1
|
+
import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams6, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -49,7 +49,7 @@ export declare class TablesService extends Service {
|
|
|
49
49
|
* @request DELETE:/tables
|
|
50
50
|
* @response `200` OK
|
|
51
51
|
*/
|
|
52
|
-
deleteResources(query:
|
|
52
|
+
deleteResources(query: DeleteResourcesParams6): Promise<BulkOperationResultDc[]>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetCapabilities1Params,
|
|
1
|
+
import { GetCapabilities1Params, GetCapabilitiesParams2, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -16,7 +16,7 @@ export declare class WmsServerService extends Service {
|
|
|
16
16
|
* @request GET:/wms#REQUEST=GetCapabilities
|
|
17
17
|
* @response `200` OK
|
|
18
18
|
*/
|
|
19
|
-
getCapabilities(query:
|
|
19
|
+
getCapabilities(query: GetCapabilitiesParams2): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* No description
|
|
22
22
|
*
|
|
@@ -874,6 +874,8 @@ export interface CatalogResourceDc {
|
|
|
874
874
|
* File
|
|
875
875
|
*
|
|
876
876
|
* TaskPrototype
|
|
877
|
+
*
|
|
878
|
+
* DataSource
|
|
877
879
|
*/
|
|
878
880
|
type?: CatalogResourceType;
|
|
879
881
|
/** Resource subtype. */
|
|
@@ -893,8 +895,6 @@ export interface CatalogResourceDc {
|
|
|
893
895
|
contentType?: string;
|
|
894
896
|
/** Preview. */
|
|
895
897
|
preview?: string;
|
|
896
|
-
/** Check if resource has children. */
|
|
897
|
-
hasChildren?: boolean;
|
|
898
898
|
/** Check if resource is directory. */
|
|
899
899
|
isDirectory?: boolean;
|
|
900
900
|
/** Check if resource is temporary. */
|
|
@@ -950,6 +950,8 @@ Table
|
|
|
950
950
|
File
|
|
951
951
|
|
|
952
952
|
TaskPrototype
|
|
953
|
+
|
|
954
|
+
DataSource
|
|
953
955
|
*/
|
|
954
956
|
export declare enum CatalogResourceType {
|
|
955
957
|
None = "None",
|
|
@@ -957,7 +959,8 @@ export declare enum CatalogResourceType {
|
|
|
957
959
|
Layer = "Layer",
|
|
958
960
|
Table = "Table",
|
|
959
961
|
File = "File",
|
|
960
|
-
TaskPrototype = "TaskPrototype"
|
|
962
|
+
TaskPrototype = "TaskPrototype",
|
|
963
|
+
DataSource = "DataSource"
|
|
961
964
|
}
|
|
962
965
|
/**
|
|
963
966
|
* Ending with an empty circle.
|
|
@@ -1470,6 +1473,14 @@ export declare type CopyTaskParametersDc = FeatureTaskParametersDc & {
|
|
|
1470
1473
|
condition?: string | null;
|
|
1471
1474
|
attributeMapping?: Record<string, string | null>;
|
|
1472
1475
|
};
|
|
1476
|
+
/**
|
|
1477
|
+
* Create data source data contract.
|
|
1478
|
+
*/
|
|
1479
|
+
export declare type CreateDataSourceDc = DataSourceDc & {
|
|
1480
|
+
parentId?: string | null;
|
|
1481
|
+
owner?: string | null;
|
|
1482
|
+
acl?: AccessControlListDc;
|
|
1483
|
+
};
|
|
1473
1484
|
/**
|
|
1474
1485
|
* Create directory request.
|
|
1475
1486
|
*/
|
|
@@ -1551,7 +1562,7 @@ export interface CreateUserDc {
|
|
|
1551
1562
|
/** Namespace. */
|
|
1552
1563
|
namespace?: string;
|
|
1553
1564
|
/** Username. */
|
|
1554
|
-
username
|
|
1565
|
+
username?: string;
|
|
1555
1566
|
/**
|
|
1556
1567
|
* Email.
|
|
1557
1568
|
* @format email
|
|
@@ -1622,11 +1633,58 @@ export interface DataSourceDc {
|
|
|
1622
1633
|
*
|
|
1623
1634
|
* Postgres
|
|
1624
1635
|
*
|
|
1636
|
+
* Trino
|
|
1637
|
+
*
|
|
1625
1638
|
* S3
|
|
1626
1639
|
*
|
|
1627
1640
|
* GisServer
|
|
1628
1641
|
*/
|
|
1629
1642
|
type?: DataSourceType;
|
|
1643
|
+
/** Tags. */
|
|
1644
|
+
tags?: string[];
|
|
1645
|
+
/** Connection string. */
|
|
1646
|
+
connectionString?: string;
|
|
1647
|
+
/** Schema. */
|
|
1648
|
+
schema?: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* Date and time when the remote connection was created.
|
|
1651
|
+
* @format date-time
|
|
1652
|
+
*/
|
|
1653
|
+
created?: string;
|
|
1654
|
+
/**
|
|
1655
|
+
* Date and time when the remote connection was last modified.
|
|
1656
|
+
* @format date-time
|
|
1657
|
+
*/
|
|
1658
|
+
modified?: string;
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* Data source info.
|
|
1662
|
+
*/
|
|
1663
|
+
export interface DataSourceInfoDc {
|
|
1664
|
+
/** Name. */
|
|
1665
|
+
name?: string;
|
|
1666
|
+
/** Alias. */
|
|
1667
|
+
alias?: string;
|
|
1668
|
+
/** Description. */
|
|
1669
|
+
description?: string;
|
|
1670
|
+
/**
|
|
1671
|
+
*
|
|
1672
|
+
*
|
|
1673
|
+
* Postgres
|
|
1674
|
+
*
|
|
1675
|
+
* Trino
|
|
1676
|
+
*
|
|
1677
|
+
* S3
|
|
1678
|
+
*
|
|
1679
|
+
* GisServer
|
|
1680
|
+
*/
|
|
1681
|
+
type?: DataSourceType;
|
|
1682
|
+
/** Tags. */
|
|
1683
|
+
tags?: string[];
|
|
1684
|
+
/** Parent id. */
|
|
1685
|
+
parentId?: string;
|
|
1686
|
+
/** Resource id. */
|
|
1687
|
+
resourceId?: string;
|
|
1630
1688
|
/** Connection string. */
|
|
1631
1689
|
connectionString?: string;
|
|
1632
1690
|
/** Schema. */
|
|
@@ -1651,12 +1709,15 @@ export interface DataSourceDc {
|
|
|
1651
1709
|
|
|
1652
1710
|
Postgres
|
|
1653
1711
|
|
|
1712
|
+
Trino
|
|
1713
|
+
|
|
1654
1714
|
S3
|
|
1655
1715
|
|
|
1656
1716
|
GisServer
|
|
1657
1717
|
*/
|
|
1658
1718
|
export declare enum DataSourceType {
|
|
1659
1719
|
Postgres = "Postgres",
|
|
1720
|
+
Trino = "Trino",
|
|
1660
1721
|
S3 = "S3",
|
|
1661
1722
|
GisServer = "GisServer"
|
|
1662
1723
|
}
|
|
@@ -1665,6 +1726,9 @@ export declare enum DataSourceType {
|
|
|
1665
1726
|
*/
|
|
1666
1727
|
export declare type DefaultTableConfigurationDc = TableConfigurationBaseDc & {
|
|
1667
1728
|
type?: string | null;
|
|
1729
|
+
schemaName?: string | null;
|
|
1730
|
+
tableName?: string | null;
|
|
1731
|
+
dataProvider?: string | null;
|
|
1668
1732
|
};
|
|
1669
1733
|
/**
|
|
1670
1734
|
* Dependent resource description.
|
|
@@ -3652,14 +3716,14 @@ export interface PagedListConfigDc {
|
|
|
3652
3716
|
limit?: number;
|
|
3653
3717
|
items?: ConfigDc[];
|
|
3654
3718
|
}
|
|
3655
|
-
export interface
|
|
3719
|
+
export interface PagedListDataSourceInfoDc {
|
|
3656
3720
|
/** @format int64 */
|
|
3657
3721
|
totalCount?: number;
|
|
3658
3722
|
/** @format int32 */
|
|
3659
3723
|
offset?: number;
|
|
3660
3724
|
/** @format int32 */
|
|
3661
3725
|
limit?: number;
|
|
3662
|
-
items?:
|
|
3726
|
+
items?: DataSourceInfoDc[];
|
|
3663
3727
|
}
|
|
3664
3728
|
export interface PagedListExtendedUserInfoDc {
|
|
3665
3729
|
/** @format int64 */
|
|
@@ -4738,7 +4802,7 @@ export interface RegisterClientResponseDc {
|
|
|
4738
4802
|
*/
|
|
4739
4803
|
export interface RegisterUserDc {
|
|
4740
4804
|
/** Username. */
|
|
4741
|
-
username
|
|
4805
|
+
username?: string;
|
|
4742
4806
|
/**
|
|
4743
4807
|
* Email.
|
|
4744
4808
|
* @format email
|
|
@@ -4747,7 +4811,7 @@ export interface RegisterUserDc {
|
|
|
4747
4811
|
/** Phone number. */
|
|
4748
4812
|
phone?: string;
|
|
4749
4813
|
/** Password. */
|
|
4750
|
-
password
|
|
4814
|
+
password?: string;
|
|
4751
4815
|
}
|
|
4752
4816
|
/**
|
|
4753
4817
|
* Configuration for the remote tile service.
|
|
@@ -6519,6 +6583,12 @@ export declare type TracksSymbolDc = TrackSymbolBaseDc & {
|
|
|
6519
6583
|
export declare type UnionTaskParametersDc = FeatureTaskParametersDc & {
|
|
6520
6584
|
type?: string | null;
|
|
6521
6585
|
};
|
|
6586
|
+
/**
|
|
6587
|
+
* Update data source data contract.
|
|
6588
|
+
*/
|
|
6589
|
+
export declare type UpdateDataSourceDc = DataSourceDc & {
|
|
6590
|
+
resourceId?: string | null;
|
|
6591
|
+
};
|
|
6522
6592
|
/**
|
|
6523
6593
|
* Feature object definition for updating.
|
|
6524
6594
|
*/
|
|
@@ -6609,7 +6679,7 @@ export interface UpdateUserDc {
|
|
|
6609
6679
|
/** Namespace. */
|
|
6610
6680
|
namespace?: string;
|
|
6611
6681
|
/** Username. */
|
|
6612
|
-
username
|
|
6682
|
+
username?: string;
|
|
6613
6683
|
/**
|
|
6614
6684
|
* Email.
|
|
6615
6685
|
* @format email
|
|
@@ -7758,7 +7828,7 @@ export interface ValidateExpressionParams {
|
|
|
7758
7828
|
/** Layer name. */
|
|
7759
7829
|
layerName: string;
|
|
7760
7830
|
}
|
|
7761
|
-
export interface
|
|
7831
|
+
export interface GetRasterMetaParams4 {
|
|
7762
7832
|
/**
|
|
7763
7833
|
* Min value for build histogram.
|
|
7764
7834
|
* @format double
|
|
@@ -7877,7 +7947,7 @@ export interface GetProjectsListParams {
|
|
|
7877
7947
|
tags?: string[];
|
|
7878
7948
|
}
|
|
7879
7949
|
export declare type SetPermissionsBatchBody = ResourceAclDc[];
|
|
7880
|
-
export interface
|
|
7950
|
+
export interface DeleteResourcesParams1 {
|
|
7881
7951
|
/** Resource names. */
|
|
7882
7952
|
names?: string[];
|
|
7883
7953
|
}
|
|
@@ -8160,7 +8230,7 @@ export interface StatisticsDbParams {
|
|
|
8160
8230
|
*/
|
|
8161
8231
|
types?: AggregationFunction[];
|
|
8162
8232
|
}
|
|
8163
|
-
export interface
|
|
8233
|
+
export interface ClassifyParams4 {
|
|
8164
8234
|
/** Layer name. */
|
|
8165
8235
|
name: string;
|
|
8166
8236
|
/** Attribute name. */
|
|
@@ -8293,7 +8363,7 @@ export interface GetTableListParams {
|
|
|
8293
8363
|
acl?: string;
|
|
8294
8364
|
}
|
|
8295
8365
|
export declare type SetPermissionsBatchInput = ResourceAclDc[];
|
|
8296
|
-
export interface
|
|
8366
|
+
export interface DeleteResourcesParams6 {
|
|
8297
8367
|
/** Resource names. */
|
|
8298
8368
|
names?: string[];
|
|
8299
8369
|
}
|
|
@@ -8450,7 +8520,7 @@ export interface GetPublicCapabilitiesParams {
|
|
|
8450
8520
|
/** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
|
|
8451
8521
|
AcceptFormats?: string[];
|
|
8452
8522
|
}
|
|
8453
|
-
export interface
|
|
8523
|
+
export interface GetCapabilitiesParams2 {
|
|
8454
8524
|
/** Output format of service metadata. */
|
|
8455
8525
|
Format?: string;
|
|
8456
8526
|
/** Must be WMS. */
|
|
@@ -315,6 +315,108 @@ let Service = /*#__PURE__*/_createClass(function Service(http) {
|
|
|
315
315
|
this.http = http;
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
+
/**
|
|
319
|
+
* @title Spatial Processing Core API
|
|
320
|
+
* @version 1.5.1.0
|
|
321
|
+
* @baseUrl /sp
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
let DataSourceService = /*#__PURE__*/function (_Service) {
|
|
325
|
+
_inherits(DataSourceService, _Service);
|
|
326
|
+
|
|
327
|
+
var _super = /*#__PURE__*/_createSuper(DataSourceService);
|
|
328
|
+
|
|
329
|
+
function DataSourceService() {
|
|
330
|
+
_classCallCheck(this, DataSourceService);
|
|
331
|
+
|
|
332
|
+
return _super.apply(this, arguments);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
_createClass(DataSourceService, [{
|
|
336
|
+
key: "getDataSourcesList",
|
|
337
|
+
value:
|
|
338
|
+
/**
|
|
339
|
+
* No description
|
|
340
|
+
*
|
|
341
|
+
* @tags DataSource
|
|
342
|
+
* @name GetDataSourcesList
|
|
343
|
+
* @operationId DataSourceController_GetDataSourcesList
|
|
344
|
+
* @summary Returns list of the available data sources.
|
|
345
|
+
* @request GET:/ds
|
|
346
|
+
* @response `200` OK
|
|
347
|
+
*/
|
|
348
|
+
function getDataSourcesList(query) {
|
|
349
|
+
return this.http.get("/ds", query).json();
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* No description
|
|
353
|
+
*
|
|
354
|
+
* @tags DataSource
|
|
355
|
+
* @name CreateDataSource
|
|
356
|
+
* @operationId DataSourceController_CreateDataSource
|
|
357
|
+
* @summary Create data source.
|
|
358
|
+
* @request POST:/ds
|
|
359
|
+
* @response `200` OK
|
|
360
|
+
*/
|
|
361
|
+
|
|
362
|
+
}, {
|
|
363
|
+
key: "createDataSource",
|
|
364
|
+
value: function createDataSource(data) {
|
|
365
|
+
return this.http.post("/ds", data).then(() => {});
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* No description
|
|
369
|
+
*
|
|
370
|
+
* @tags DataSource
|
|
371
|
+
* @name UpdateDataSource
|
|
372
|
+
* @operationId DataSourceController_UpdateDataSource
|
|
373
|
+
* @summary Update data source.
|
|
374
|
+
* @request PATCH:/ds
|
|
375
|
+
* @response `200` OK
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
}, {
|
|
379
|
+
key: "updateDataSource",
|
|
380
|
+
value: function updateDataSource(data) {
|
|
381
|
+
return this.http.patch("/ds", data).then(() => {});
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* No description
|
|
385
|
+
*
|
|
386
|
+
* @tags DataSource
|
|
387
|
+
* @name GetDataSource
|
|
388
|
+
* @operationId DataSourceController_GetDataSource
|
|
389
|
+
* @summary Get data source by name.
|
|
390
|
+
* @request GET:/ds/{name}
|
|
391
|
+
* @response `200` OK
|
|
392
|
+
*/
|
|
393
|
+
|
|
394
|
+
}, {
|
|
395
|
+
key: "getDataSource",
|
|
396
|
+
value: function getDataSource(name) {
|
|
397
|
+
return this.http.get("/ds/" + name).json();
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* No description
|
|
401
|
+
*
|
|
402
|
+
* @tags DataSource
|
|
403
|
+
* @name RemoveDataSource
|
|
404
|
+
* @operationId DataSourceController_RemoveDataSource
|
|
405
|
+
* @summary Remove data source by name.
|
|
406
|
+
* @request DELETE:/ds/{name}
|
|
407
|
+
* @response `200` OK
|
|
408
|
+
*/
|
|
409
|
+
|
|
410
|
+
}, {
|
|
411
|
+
key: "removeDataSource",
|
|
412
|
+
value: function removeDataSource(name) {
|
|
413
|
+
return this.http.delete("/ds/" + name, null).then(() => {});
|
|
414
|
+
}
|
|
415
|
+
}]);
|
|
416
|
+
|
|
417
|
+
return DataSourceService;
|
|
418
|
+
}(Service);
|
|
419
|
+
|
|
318
420
|
/**
|
|
319
421
|
* @title Spatial Processing Core API
|
|
320
422
|
* @version 1.5.1.0
|
|
@@ -5147,7 +5249,7 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
5147
5249
|
value: async function subscribe(tag) {
|
|
5148
5250
|
this.subscriptions.push(tag);
|
|
5149
5251
|
setTimeout(() => {
|
|
5150
|
-
if (!this.api.isShared && this.subscriptions.length) {
|
|
5252
|
+
if (!this.api.isShared && !this.api.isPresentation && this.subscriptions.length) {
|
|
5151
5253
|
this.subscribeListOperation(this.subscriptions);
|
|
5152
5254
|
}
|
|
5153
5255
|
|
|
@@ -7504,6 +7606,7 @@ let VectorTiles = /*#__PURE__*/function (_VectorTileService) {
|
|
|
7504
7606
|
(function (UrlPath) {
|
|
7505
7607
|
UrlPath["Base"] = "/map";
|
|
7506
7608
|
UrlPath["Shared"] = "/shared";
|
|
7609
|
+
UrlPath["Presentation"] = "/presentation";
|
|
7507
7610
|
UrlPath["Portal"] = "/portal";
|
|
7508
7611
|
})(exports.UrlPath || (exports.UrlPath = {}));
|
|
7509
7612
|
|
|
@@ -7599,6 +7702,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7599
7702
|
_this.eql = new Eql(_this.http);
|
|
7600
7703
|
_this.catalog = new CatalogService(_this.http);
|
|
7601
7704
|
_this.queryToken = new QueryTokenAccessService(_this.http);
|
|
7705
|
+
_this.dataSource = new DataSourceService(_this.http);
|
|
7602
7706
|
_this.names = new Names({
|
|
7603
7707
|
account: _this.account
|
|
7604
7708
|
});
|
|
@@ -7716,6 +7820,11 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7716
7820
|
get: function get() {
|
|
7717
7821
|
return this.urlPath === exports.UrlPath.Shared;
|
|
7718
7822
|
}
|
|
7823
|
+
}, {
|
|
7824
|
+
key: "isPresentation",
|
|
7825
|
+
get: function get() {
|
|
7826
|
+
return this.urlPath === exports.UrlPath.Presentation;
|
|
7827
|
+
}
|
|
7719
7828
|
}]);
|
|
7720
7829
|
|
|
7721
7830
|
return Api;
|
|
@@ -8138,6 +8247,7 @@ function isFeatureLayer(layer) {
|
|
|
8138
8247
|
CatalogResourceType["Table"] = "Table";
|
|
8139
8248
|
CatalogResourceType["File"] = "File";
|
|
8140
8249
|
CatalogResourceType["TaskPrototype"] = "TaskPrototype";
|
|
8250
|
+
CatalogResourceType["DataSource"] = "DataSource";
|
|
8141
8251
|
})(exports.CatalogResourceType || (exports.CatalogResourceType = {}));
|
|
8142
8252
|
|
|
8143
8253
|
(function (ClassificationType) {
|
|
@@ -8184,6 +8294,7 @@ function isFeatureLayer(layer) {
|
|
|
8184
8294
|
|
|
8185
8295
|
(function (DataSourceType) {
|
|
8186
8296
|
DataSourceType["Postgres"] = "Postgres";
|
|
8297
|
+
DataSourceType["Trino"] = "Trino";
|
|
8187
8298
|
DataSourceType["S3"] = "S3";
|
|
8188
8299
|
DataSourceType["GisServer"] = "GisServer";
|
|
8189
8300
|
})(exports.DataSourceType || (exports.DataSourceType = {}));
|