@evergis/api
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -35,3 +35,3 @@ /** | ||
/** Geometry type. */ | ||
type?: 'unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint'; | ||
type: 'unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint'; | ||
/** Spatial reference of the geometry. */ | ||
@@ -109,3 +109,3 @@ sr?: ISpatialReference; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -117,3 +117,3 @@ /** | ||
/** All available permissions list. */ | ||
acl?: RolePermissionDc[]; | ||
acl: RolePermissionDc[]; | ||
}; | ||
@@ -125,5 +125,5 @@ /** | ||
/** Role name. */ | ||
role?: string; | ||
role: string; | ||
/** Acl set */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
permissions: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -168,3 +168,3 @@ /** | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -200,3 +200,3 @@ /** | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -212,3 +212,3 @@ /** | ||
/** Column value type. */ | ||
type?: 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint'; | ||
type: 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint'; | ||
/** Columns value max length. */ | ||
@@ -226,2 +226,24 @@ maxLength?: number; | ||
/** | ||
* Information necessary for user authorization. | ||
*/ | ||
export declare type AuthorizationData = { | ||
/** User name. */ | ||
login: string; | ||
/** User password. */ | ||
password: string; | ||
}; | ||
/** | ||
* Information about a user session. | ||
*/ | ||
export declare type SessionInfoDc = { | ||
/** The identificator of the session. */ | ||
token?: string; | ||
/** The owner of the session. */ | ||
owner?: string; | ||
/** The list of security roles that the owner has. */ | ||
ownerRoles?: string[]; | ||
/** The date and time of the last client request that used this session. */ | ||
lastAccess?: string; | ||
}; | ||
/** | ||
* Information about layer update. | ||
@@ -275,5 +297,5 @@ Includes ids of modified features and their bbox. | ||
/** Coordinates of the envelope. Always has exactly 2 points: left bottom and right top. */ | ||
coordinates?: PositionDc[]; | ||
coordinates: PositionDc[]; | ||
/** */ | ||
type?: 'unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint'; | ||
type: 'unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint'; | ||
/** Spatial reference of the geometry. */ | ||
@@ -287,5 +309,5 @@ sr?: ISpatialReference; | ||
/** Gets the longitude (x-coordinate). */ | ||
x?: number; | ||
x: number; | ||
/** Gets the latitude (y-coordinate). */ | ||
y?: number; | ||
y: number; | ||
}; | ||
@@ -304,3 +326,3 @@ /** | ||
/** Name of the layer. */ | ||
name: string; | ||
name?: string; | ||
/** Number of objects in the layer. */ | ||
@@ -358,45 +380,2 @@ objectCount?: number; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type ExtendedServiceInfo = { | ||
/** */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
/** */ | ||
acl?: { | ||
/** */ | ||
[key: string]: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** */ | ||
name: string; | ||
/** */ | ||
type?: string; | ||
/** */ | ||
fullName?: string; | ||
/** */ | ||
owner?: string; | ||
/** */ | ||
alias?: string; | ||
/** */ | ||
description?: string; | ||
/** */ | ||
createdDate?: string; | ||
/** */ | ||
changedDate?: string; | ||
/** */ | ||
preview?: string; | ||
/** */ | ||
categories?: string[]; | ||
/** */ | ||
parameters?: { | ||
/** */ | ||
Category?: string[]; | ||
/** */ | ||
Preview?: string[]; | ||
/** */ | ||
GeometryType?: string[]; | ||
/** */ | ||
DependentResource?: string[]; | ||
}; | ||
}; | ||
/** | ||
* The result of uploading a file. | ||
@@ -409,22 +388,2 @@ */ | ||
/** | ||
* Resource dependency description. | ||
*/ | ||
export declare type ResourceDependencyDc = { | ||
/** Name of the target resource. */ | ||
name: string; | ||
/** Array of dependent resources. */ | ||
dependentResources?: DependentResourceDc[]; | ||
}; | ||
/** | ||
* Dependent resource description. | ||
*/ | ||
export declare type DependentResourceDc = { | ||
/** Name of the target resource. */ | ||
name: string; | ||
/** Name of dependent resource. */ | ||
dependentTo?: string; | ||
/** Type of dependent resource. */ | ||
resourceType?: string; | ||
}; | ||
/** | ||
* Configuration for the remote tile service. | ||
@@ -434,6 +393,6 @@ */ | ||
/** Tile schema of the service. */ | ||
tileInfo?: TileInfoDc; | ||
tileInfo: TileInfoDc; | ||
/** SourceBatch url mask. Like http://{0}.website.ru/{1}/{2}/{3}.png | ||
Where: {0} - SubDomains, {1} - Z, {2} - X, {3} - Y. */ | ||
urlFormat?: string; | ||
urlFormat: string; | ||
/** Max tile count for caching. */ | ||
@@ -443,3 +402,3 @@ tileCacheLimit?: number; | ||
Will be inserted into the UrlFormat {0}. */ | ||
subDomains?: string[]; | ||
subDomains: string[]; | ||
/** Copyright text. */ | ||
@@ -489,2 +448,157 @@ copyrightText?: string; | ||
/** | ||
* Service info for a tile service. | ||
*/ | ||
export declare type RemoteTileServiceInfoDc = ServiceInfoDc & { | ||
/** */ | ||
sourceUrl?: string; | ||
/** */ | ||
sourceUrlMask?: string; | ||
/** */ | ||
sourceServers?: string[]; | ||
/** */ | ||
copyrightText?: string; | ||
/** */ | ||
tileInfo?: TileInfoDc; | ||
/** */ | ||
type: string; | ||
/** */ | ||
categories?: string[]; | ||
/** */ | ||
name: string; | ||
/** */ | ||
fullName?: string; | ||
/** */ | ||
alias?: string; | ||
/** */ | ||
owner?: string; | ||
/** */ | ||
description?: string; | ||
/** */ | ||
preview?: string; | ||
/** */ | ||
createdDate?: string; | ||
/** */ | ||
changedDate?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type RemoteTileServiceInfo = { | ||
/** */ | ||
sourceUrl?: string; | ||
/** */ | ||
sourceUrlMask?: string; | ||
/** */ | ||
sourceServers?: string[]; | ||
/** */ | ||
copyrightText?: string; | ||
/** */ | ||
tileInfo?: TileInfo; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
/** */ | ||
acl?: { | ||
/** */ | ||
[key: string]: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** */ | ||
name?: string; | ||
/** */ | ||
type?: string; | ||
/** */ | ||
fullName?: string; | ||
/** */ | ||
owner?: string; | ||
/** */ | ||
alias?: string; | ||
/** */ | ||
description?: string; | ||
/** */ | ||
createdDate?: string; | ||
/** */ | ||
changedDate?: string; | ||
/** */ | ||
preview?: string; | ||
/** */ | ||
categories?: string[]; | ||
/** */ | ||
parameters?: { | ||
/** */ | ||
Category?: string[]; | ||
/** */ | ||
Preview?: string[]; | ||
/** */ | ||
GeometryType?: string[]; | ||
/** */ | ||
DependentResource?: string[]; | ||
}; | ||
}; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type TileInfo = { | ||
/** */ | ||
origin?: IVector; | ||
/** */ | ||
boundingRectangle?: Rectangle2; | ||
/** */ | ||
reversedY?: boolean; | ||
/** */ | ||
dpi?: number; | ||
/** */ | ||
height?: number; | ||
/** */ | ||
width?: number; | ||
/** */ | ||
format?: string; | ||
/** */ | ||
spatialReference?: ISpatialReference; | ||
/** */ | ||
lods?: LodInfo[]; | ||
}; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type Rectangle2 = { | ||
/** */ | ||
width?: number; | ||
/** */ | ||
height?: number; | ||
/** */ | ||
center?: IVector; | ||
/** */ | ||
halfSize?: IVector; | ||
}; | ||
/** | ||
* Service info for a tile service. | ||
*/ | ||
export declare type TileServiceInfoDc = ServiceInfoDc & { | ||
/** */ | ||
tileInfo?: TileInfoDc; | ||
/** */ | ||
type: string; | ||
/** */ | ||
categories?: string[]; | ||
/** */ | ||
name: string; | ||
/** */ | ||
fullName?: string; | ||
/** */ | ||
alias?: string; | ||
/** */ | ||
owner?: string; | ||
/** */ | ||
description?: string; | ||
/** */ | ||
preview?: string; | ||
/** */ | ||
createdDate?: string; | ||
/** */ | ||
changedDate?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** | ||
* Configuration of a postgres feature layer service. | ||
@@ -494,5 +608,5 @@ */ | ||
/** The name of the data service that the layer will use. */ | ||
dataServiceName?: string; | ||
dataServiceName: string; | ||
/** Configuration of the attributes of the layer. */ | ||
attributesConfiguration?: AttributesConfigurationDc; | ||
attributesConfiguration: AttributesConfigurationDc; | ||
/** Style of the layer. */ | ||
@@ -514,9 +628,9 @@ style?: StyleDc; | ||
/** The name of the attribute that is used for identifying features. */ | ||
idAttribute?: string; | ||
idAttribute: string; | ||
/** The name of the attribute that is used for setting feature name (optional). */ | ||
titleAttribute?: string; | ||
/** The name of the attribute that contains the feature geometry. */ | ||
geometryAttribute?: string; | ||
geometryAttribute: string; | ||
/** The name of the table in data source service, that contains the data for this layer. */ | ||
tableName?: string; | ||
tableName: string; | ||
/** Configuration of the attributes of the layer. */ | ||
@@ -547,5 +661,5 @@ attributes?: AttributeConfigurationDc[]; | ||
/** The name of the attribute. */ | ||
attributeName?: string; | ||
attributeName: string; | ||
/** The name of the column in the data table that holds the attribute values. */ | ||
columnName?: string; | ||
columnName: string; | ||
/** Human-friendly name for the attribute. */ | ||
@@ -584,2 +698,46 @@ alias?: string; | ||
/** | ||
* Service info for a feature layer service. | ||
*/ | ||
export declare type FeatureLayerServiceInfoDc = ServiceInfoDc & { | ||
/** */ | ||
geometryType?: 'unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint'; | ||
/** */ | ||
configuration?: ServiceConfigurationBaseDc; | ||
/** */ | ||
style?: StyleDc; | ||
/** */ | ||
type: string; | ||
/** */ | ||
categories?: string[]; | ||
/** */ | ||
name: string; | ||
/** */ | ||
fullName?: string; | ||
/** */ | ||
alias?: string; | ||
/** */ | ||
owner?: string; | ||
/** */ | ||
description?: string; | ||
/** */ | ||
preview?: string; | ||
/** */ | ||
createdDate?: string; | ||
/** */ | ||
changedDate?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** | ||
* Common fields for service configurations. | ||
*/ | ||
export declare type ServiceConfigurationBaseDc = { | ||
/** Name of the service. */ | ||
name: string; | ||
/** Human friendly name of the service. */ | ||
alias?: string; | ||
/** Description of the service. */ | ||
description?: string; | ||
}; | ||
/** | ||
* Configuration of a styled layer service. This service type is a visual feature layer, | ||
@@ -590,5 +748,5 @@ that overrides the base layer styling with its' own style. | ||
/** Style of the service. */ | ||
style?: StyleDc; | ||
style: StyleDc; | ||
/** The name of the base service. */ | ||
baseServiceName?: string; | ||
baseServiceName: string; | ||
/** Name of the service. */ | ||
@@ -606,3 +764,3 @@ name: string; | ||
/** Composite service layers list. */ | ||
layers?: CompositeLayerConfigurationDc[]; | ||
layers: CompositeLayerConfigurationDc[]; | ||
/** Name of the service. */ | ||
@@ -620,3 +778,3 @@ name: string; | ||
/** Gets or sets composite name. */ | ||
name: string; | ||
name?: string; | ||
/** Gets or sets composite layer type */ | ||
@@ -636,2 +794,50 @@ type?: string; | ||
/** | ||
* Information about composite service. | ||
*/ | ||
export declare type CompositeServiceInfoDc = ServiceInfoDc & { | ||
/** */ | ||
layers?: CompositeLayerInfoDc[]; | ||
/** */ | ||
type: string; | ||
/** */ | ||
categories?: string[]; | ||
/** */ | ||
name: string; | ||
/** */ | ||
fullName?: string; | ||
/** */ | ||
alias?: string; | ||
/** */ | ||
owner?: string; | ||
/** */ | ||
description?: string; | ||
/** */ | ||
preview?: string; | ||
/** */ | ||
createdDate?: string; | ||
/** */ | ||
changedDate?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** | ||
* Information about composite service layer. | ||
*/ | ||
export declare type CompositeLayerInfoDc = { | ||
/** Gets or sets composite layer info. */ | ||
layer?: ServiceInfoDc; | ||
/** Gets layer visibility. */ | ||
isVisible?: boolean; | ||
/** Gets layer opacity. */ | ||
opacity?: number; | ||
/** Gets minimum scale resolution. */ | ||
minResolution?: number; | ||
/** Gets maximum scale resolution. */ | ||
maxResolution?: number; | ||
/** Gets layer state. */ | ||
isValid?: boolean; | ||
/** Gets layer initialization error. */ | ||
error?: any /** Unknown props */; | ||
}; | ||
/** | ||
* Base class for client notifications. | ||
@@ -679,3 +885,3 @@ */ | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -687,3 +893,3 @@ /** | ||
/** Project content configuration. */ | ||
content?: ProjectConfigurationDc; | ||
content: ProjectConfigurationDc; | ||
/** Access control list. */ | ||
@@ -708,3 +914,3 @@ acl?: AccessControlListDc; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -753,2 +959,40 @@ /** | ||
/** | ||
* undefined | ||
*/ | ||
export declare type ExtendedResourceInfoPubDc = { | ||
/** */ | ||
isFavorite?: boolean; | ||
/** Published datetime of the resource. */ | ||
publishedDate?: string; | ||
/** A list of users that using this resource. */ | ||
usedByUsers?: string[]; | ||
/** Resource name. */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
/** Resource alias. */ | ||
alias?: string; | ||
/** Resource owner. */ | ||
owner?: string; | ||
/** Resource description. */ | ||
description?: string; | ||
/** Resource preview. */ | ||
preview?: string; | ||
/** The date when resource was created. */ | ||
createdDate?: string; | ||
/** The date when resource was last modified. */ | ||
changedDate?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type NewResourcesTypesDc = { | ||
/** */ | ||
resourceType?: 'tables' | 'layers' | 'projects'; | ||
/** */ | ||
count?: number; | ||
}; | ||
/** | ||
* Server task data contract. | ||
@@ -1025,22 +1269,20 @@ */ | ||
/** | ||
* Information necessary for user authorization. | ||
* Resource dependency description. | ||
*/ | ||
export declare type AuthorizationData = { | ||
/** User name. */ | ||
login?: string; | ||
/** User password. */ | ||
password?: string; | ||
export declare type ResourceDependencyDc = { | ||
/** Name of the target resource. */ | ||
name?: string; | ||
/** Array of dependent resources. */ | ||
dependentResources?: DependentResourceDc[]; | ||
}; | ||
/** | ||
* Information about a user session. | ||
* Dependent resource description. | ||
*/ | ||
export declare type SessionInfoDc = { | ||
/** The identificator of the session. */ | ||
token?: string; | ||
/** The owner of the session. */ | ||
owner?: string; | ||
/** The list of security roles that the owner has. */ | ||
ownerRoles?: string[]; | ||
/** The date and time of the last client request that used this session. */ | ||
lastAccess?: string; | ||
export declare type DependentResourceDc = { | ||
/** Name of the target resource. */ | ||
name?: string; | ||
/** Name of dependent resource. */ | ||
dependentTo?: string; | ||
/** Type of dependent resource. */ | ||
resourceType?: string; | ||
}; | ||
@@ -1050,3 +1292,5 @@ /** | ||
*/ | ||
export declare type ServiceManagerConfiguration = { | ||
export declare type WorkspaceConfigurationDc = { | ||
/** */ | ||
guessAvailableName?: boolean; | ||
/** If set, the service manager will be able to create only the services of the given types. */ | ||
@@ -1059,6 +1303,8 @@ allowedServiceTypes?: string[]; | ||
maxFeaturesInOneTable?: number; | ||
/** Access control list for the service manager, data service and project manager of the workspace. */ | ||
acl?: AccessControlListDc; | ||
/** Configuration for the data service. */ | ||
dataServiceConfiguration?: DataServiceConfiguration; | ||
dataServiceConfiguration: DataServiceConfiguration; | ||
/** Configuration for the project service. */ | ||
projectServiceConfiguration?: ProjectServiceConfiguration; | ||
projectServiceConfiguration: ProjectServiceConfiguration; | ||
/** Name of the service. */ | ||
@@ -1135,3 +1381,3 @@ name: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -1171,3 +1417,10 @@ /** | ||
*/ | ||
export declare type ClientNotificationDcTData = {}; | ||
export declare type ClientNotificationDcTData = ClientNotificationDc & { | ||
/** */ | ||
data?: TData; | ||
/** */ | ||
tag?: string; | ||
/** */ | ||
date?: string; | ||
}; | ||
/** | ||
@@ -1180,3 +1433,10 @@ * undefined | ||
*/ | ||
export declare type LayerUpdatedNotificationDc = {}; | ||
export declare type LayerUpdatedNotificationDc = ClientNotificationDc & { | ||
/** */ | ||
data?: LayerUpdatedInfoDc; | ||
/** */ | ||
tag?: string; | ||
/** */ | ||
date?: string; | ||
}; | ||
/** | ||
@@ -1200,3 +1460,10 @@ * Detailed information about the modification made in a feature layer. | ||
*/ | ||
export declare type TaskStatusChangeNotificationDc = {}; | ||
export declare type TaskStatusChangeNotificationDc = ClientNotificationDc & { | ||
/** */ | ||
data?: TaskStatusChangedInfo; | ||
/** */ | ||
tag?: string; | ||
/** */ | ||
date?: string; | ||
}; | ||
/** | ||
@@ -1213,47 +1480,1 @@ * Information about the updated task status. | ||
}; | ||
/** | ||
* Service info for a tile service. | ||
*/ | ||
export declare type RemoteTileServiceInfoDc = {}; | ||
/** | ||
* Service info for a tile service. | ||
*/ | ||
export declare type TileServiceInfoDc = {}; | ||
/** | ||
* Service info for a feature layer service. | ||
*/ | ||
export declare type FeatureLayerServiceInfoDc = {}; | ||
/** | ||
* Common fields for service configurations. | ||
*/ | ||
export declare type ServiceConfigurationBaseDc = { | ||
/** Name of the service. */ | ||
name: string; | ||
/** Human friendly name of the service. */ | ||
alias?: string; | ||
/** Description of the service. */ | ||
description?: string; | ||
}; | ||
/** | ||
* Information about composite service. | ||
*/ | ||
export declare type CompositeServiceInfoDc = {}; | ||
/** | ||
* Information about composite service layer. | ||
*/ | ||
export declare type CompositeLayerInfoDc = { | ||
/** Gets or sets composite layer info. */ | ||
layer?: ServiceInfoDc; | ||
/** Gets layer visibility. */ | ||
isVisible?: boolean; | ||
/** Gets layer opacity. */ | ||
opacity?: number; | ||
/** Gets minimum scale resolution. */ | ||
minResolution?: number; | ||
/** Gets maximum scale resolution. */ | ||
maxResolution?: number; | ||
/** Gets layer state. */ | ||
isValid?: boolean; | ||
/** Gets layer initialization error. */ | ||
error?: any /** Unknown props */; | ||
}; |
@@ -37,3 +37,3 @@ import ky from 'ky'; | ||
if (this.prefixUrl) { | ||
return url.replace(/(^\/+|\/+$)/g, ''); | ||
return url.replace(/^\//g, ''); | ||
} | ||
@@ -40,0 +40,0 @@ return url; |
import { Service } from './Service'; | ||
import { ServiceListDc, ExtendedServiceInfo, FileUploadResponse, ResourceDependencyDc, ServiceInfoDc, RemoteTileServiceConfigurationDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceConfigurationDc, AccessControlListDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc } from './data-contracts'; | ||
import { ServiceListDc, ServiceInfoDc, FileUploadResponse, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, AccessControlListDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc } from './data-contracts'; | ||
export declare class Layers extends Service { | ||
getLayersList({ filter, types, offset, limit, orderByFields, }: GetLayersListParams): Promise<ServiceListDc>; | ||
getLayerInfo(name: string): Promise<ExtendedServiceInfo>; | ||
getLayersList({ filter, types, offset, limit, orderByFields, isFavorite, }: GetLayersListParams): Promise<ServiceListDc>; | ||
getLayerInfo(name: string): Promise<ServiceInfoDc>; | ||
deleteLayer(name: string): Promise<void>; | ||
getPreview(name: string): string; | ||
setPreview({ name, file }: SetPreviewParams): Promise<FileUploadResponse>; | ||
getLayerDepends(name: string): Promise<ResourceDependencyDc>; | ||
publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updateRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<void>; | ||
publishLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updateLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<void>; | ||
publishPostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updatePostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<void>; | ||
publishStyledLayerService(configuration?: StyledLayerServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
publishCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updateCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<void>; | ||
publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfoDc>; | ||
updateRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfo>; | ||
publishLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<TileServiceInfoDc>; | ||
updateLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<TileServiceInfoDc>; | ||
publishPostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>; | ||
updatePostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>; | ||
publishStyledLayerService(configuration?: StyledLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>; | ||
publishCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<CompositeServiceInfoDc>; | ||
updateCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<CompositeServiceInfoDc>; | ||
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>; | ||
@@ -27,3 +26,2 @@ addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>; | ||
getById({ name, id }: GetByIdParams): Promise<FeatureDc>; | ||
getTilesLayerImage({ name, x, y, z }: GetTilesLayerImageParams): string; | ||
getLayerImage({ name, extent, size, extentSr, condition, }: GetLayerImageParams): string; | ||
@@ -34,17 +32,18 @@ getLayerExtent({ name, filterCondition, sr }: GetLayerExtentParams): Promise<EnvelopeDc>; | ||
deleteFeatures({ ids, name }: DeleteFeaturesParams): Promise<LayerUpdateInfoDc>; | ||
getTilesLayerImage({ name, x, y, z }: GetTilesLayerImageParams): string; | ||
getByGeometryGet({ name, imageRectangle, envelope, clickPoint, useFilledSymbols, }: GetByGeometryGetParams): Promise<FeaturesListDc>; | ||
} | ||
export declare type GetLayersListParams = { | ||
/** Full text query filter that allow to query in alias and name fields. | ||
<remarks> | ||
Additional, query string may contains special symbols for filter (by default query by full match) | ||
<para>{^} - query any value that begins with query.</para><para>{@} - query any value that contains query.</para></remarks> */ | ||
/** */ | ||
filter?: string; | ||
/** Filter by a collection of layers types. Sends in comma separated way. */ | ||
/** */ | ||
types?: string[]; | ||
/** Objects limit per response. */ | ||
/** */ | ||
offset?: number; | ||
/** Objects count have to skip. Default limit sets in 20 object. */ | ||
/** */ | ||
limit?: number; | ||
/** A list of {ServiceInfoDc} fields for sorting. If a field starts with {-} ordering is by descending. */ | ||
/** */ | ||
orderByFields?: string[]; | ||
/** */ | ||
isFavorite?: boolean; | ||
}; | ||
@@ -58,3 +57,3 @@ export declare type SetPreviewParams = { | ||
export declare type SetPermissionsParams = { | ||
/** Layer full name. */ | ||
/** */ | ||
name: string; | ||
@@ -65,3 +64,3 @@ /** All available permissions list. */ | ||
export declare type AddPermissionsParams = { | ||
/** Layer full name. */ | ||
/** */ | ||
name: string; | ||
@@ -72,90 +71,100 @@ /** All available permissions list. */ | ||
export declare type RemovePermissionsParams = { | ||
/** Layer full name. */ | ||
/** */ | ||
name: string; | ||
/** Exists users role. */ | ||
/** */ | ||
role: string; | ||
}; | ||
export declare type GetFeaturesParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** Sets features filtering query. */ | ||
/** */ | ||
query?: string; | ||
/** Features count have to skip. */ | ||
/** */ | ||
offset?: number; | ||
/** Features limit per response. */ | ||
/** */ | ||
limit?: number; | ||
}; | ||
export declare type CreateFeaturesParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** Features to create. */ | ||
/** */ | ||
features?: FeatureDc[]; | ||
}; | ||
export declare type DeleteFeatureParams = { | ||
/** Feature id */ | ||
/** */ | ||
id?: string; | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
}; | ||
export declare type UpdateFeatureParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** Features to update */ | ||
/** */ | ||
features?: FeatureDc[]; | ||
}; | ||
export declare type GetByIdParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** Feature id. */ | ||
/** */ | ||
id: string; | ||
}; | ||
export declare type GetTilesLayerImageParams = { | ||
/** Full name of the layer. */ | ||
name: string; | ||
/** X */ | ||
x: number; | ||
/** Y */ | ||
y: number; | ||
/** Z */ | ||
z: number; | ||
}; | ||
export declare type GetLayerImageParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** Extent to render. */ | ||
/** */ | ||
extent?: number[]; | ||
/** Image size. */ | ||
/** */ | ||
size?: number[]; | ||
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */ | ||
/** */ | ||
extentSr?: number; | ||
/** Condition to apply to the layer to filter the features. */ | ||
/** */ | ||
condition?: string; | ||
}; | ||
export declare type GetLayerExtentParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** If set, only the features that satisfy the condition will be considered when calculating the extent. */ | ||
/** */ | ||
filterCondition?: string; | ||
/** Spatial reference to return the extent in. */ | ||
/** */ | ||
sr?: number; | ||
}; | ||
export declare type GetByGeometryParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** Geometry to selects. Examples: | ||
for point geometry=x,y; | ||
for envelope: geometry=xmin,ymin,xmax,ymax; */ | ||
/** */ | ||
geometry?: number[]; | ||
}; | ||
export declare type GetByGeometryPostParams = { | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
/** Geometry to selects */ | ||
/** */ | ||
geometry?: GeometryDc; | ||
}; | ||
export declare type DeleteFeaturesParams = { | ||
/** Features ids. */ | ||
/** */ | ||
ids?: string[]; | ||
/** Full name of the layer. */ | ||
/** */ | ||
name: string; | ||
}; | ||
export declare type GetTilesLayerImageParams = { | ||
/** */ | ||
name: string; | ||
/** */ | ||
x: number; | ||
/** */ | ||
y: number; | ||
/** */ | ||
z: number; | ||
}; | ||
export declare type GetByGeometryGetParams = { | ||
/** */ | ||
name: string; | ||
/** */ | ||
imageRectangle?: number[]; | ||
/** */ | ||
envelope?: number[]; | ||
/** */ | ||
clickPoint?: number[]; | ||
/** */ | ||
useFilledSymbols?: boolean; | ||
}; |
@@ -9,5 +9,12 @@ /* | ||
export class Layers extends Service { | ||
getLayersList({ filter, types, offset, limit, orderByFields, }) { | ||
getLayersList({ filter, types, offset, limit, orderByFields, isFavorite, }) { | ||
return this.http | ||
.get(`layers`, { filter, types, offset, limit, orderByFields }) | ||
.get(`layers`, { | ||
filter, | ||
types, | ||
offset, | ||
limit, | ||
orderByFields, | ||
isFavorite, | ||
}) | ||
.json(); | ||
@@ -29,5 +36,2 @@ } | ||
} | ||
getLayerDepends(name) { | ||
return this.http.get(`layers/${name}/depends`).json(); | ||
} | ||
publishRemoteTileService(configuration) { | ||
@@ -41,3 +45,3 @@ return this.http | ||
.patch(`layers`, configuration, { type: 'RemoteTileService' }) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
@@ -52,3 +56,3 @@ publishLocalTileService(configuration) { | ||
.patch(`layers`, configuration, { type: 'LocalTileService' }) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
@@ -63,3 +67,3 @@ publishPostgresLayerService(configuration) { | ||
.patch(`layers`, configuration, { type: 'PostgresLayerService' }) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
@@ -79,3 +83,3 @@ publishStyledLayerService(configuration) { | ||
.patch(`layers`, configuration, { type: 'CompositeService' }) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
@@ -120,5 +124,2 @@ setPermissions({ name, Acl }) { | ||
} | ||
getTilesLayerImage({ name, x, y, z }) { | ||
return this.http.createUrl(`layers/${name}/tile/${z}/${x}/${y}`); | ||
} | ||
getLayerImage({ name, extent, size, extentSr, condition, }) { | ||
@@ -152,3 +153,16 @@ return this.http.createUrl(`layers/${name}/export`, { | ||
} | ||
getTilesLayerImage({ name, x, y, z }) { | ||
return this.http.createUrl(`layers/${name}/tile/${z}/${x}/${y}`); | ||
} | ||
getByGeometryGet({ name, imageRectangle, envelope, clickPoint, useFilledSymbols, }) { | ||
return this.http | ||
.get(`layers/${name}/features/getByGeometryByClick`, { | ||
imageRectangle, | ||
envelope, | ||
clickPoint, | ||
useFilledSymbols, | ||
}) | ||
.json(); | ||
} | ||
} | ||
//# sourceMappingURL=Layers.js.map |
import { Service } from './Service'; | ||
import { ProjectsListDc, ExtendedProjectInfoDc, ResourceDependencyDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
import { ProjectsListDc, ExtendedProjectInfoDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
export declare class Projects extends Service { | ||
getProjectsList({ filter, offset, limit, orderByFields, }: GetProjectsListParams): Promise<ProjectsListDc>; | ||
getProjectsList({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsListParams): Promise<ProjectsListDc>; | ||
createProject(info?: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>; | ||
updateProject(info?: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>; | ||
getProjectDepends(name: string): Promise<ResourceDependencyDc>; | ||
getProjectInfo(name: string): Promise<ExtendedProjectInfoDc>; | ||
@@ -17,13 +16,15 @@ dropProject(name: string): Promise<void>; | ||
export declare type GetProjectsListParams = { | ||
/** Project name filter (support % and _ wildcards). */ | ||
/** */ | ||
filter?: string; | ||
/** First index to return. */ | ||
/** */ | ||
offset?: number; | ||
/** Max items to return. */ | ||
/** */ | ||
limit?: number; | ||
/** A list of {ProjectInfoDc} fields for sorting. If a field starts with {-} ordering is by descending. */ | ||
/** */ | ||
orderByFields?: string[]; | ||
/** */ | ||
isFavorite?: boolean; | ||
}; | ||
export declare type SetPermissionsParams = { | ||
/** Project name. */ | ||
/** */ | ||
name: string; | ||
@@ -34,3 +35,3 @@ /** All available permissions list. */ | ||
export declare type AddPermissionsParams = { | ||
/** Resource name. */ | ||
/** */ | ||
name: string; | ||
@@ -41,5 +42,5 @@ /** All available permissions list. */ | ||
export declare type RemovePermissionsParams = { | ||
/** Resource name. */ | ||
/** */ | ||
name: string; | ||
/** Exists users role. */ | ||
/** */ | ||
role: string; | ||
@@ -46,0 +47,0 @@ }; |
@@ -9,5 +9,5 @@ /* | ||
export class Projects extends Service { | ||
getProjectsList({ filter, offset, limit, orderByFields, }) { | ||
getProjectsList({ filter, offset, limit, orderByFields, isFavorite, }) { | ||
return this.http | ||
.get(`projects`, { filter, offset, limit, orderByFields }) | ||
.get(`projects`, { filter, offset, limit, orderByFields, isFavorite }) | ||
.json(); | ||
@@ -21,7 +21,2 @@ } | ||
} | ||
getProjectDepends(name) { | ||
return this.http | ||
.get(`projects/${name}/depends`) | ||
.json(); | ||
} | ||
getProjectInfo(name) { | ||
@@ -28,0 +23,0 @@ return this.http.get(`projects/${name}`).json(); |
import { ServiceBase } from './ServiceBase'; | ||
import { ProjectsListDc, TableListDc, ServiceListDc, CatalogDataDc } from './data-contracts'; | ||
import { ProjectsListDc, TableListDc, ServiceListDc, CatalogDataDc, ExtendedResourceInfoPubDc, NewResourcesTypesDc } from './data-contracts'; | ||
export declare class ResourceCatalog extends ServiceBase { | ||
getProjects({ query, offset, limit, orderByFields }: GetProjectsParams): Promise<ProjectsListDc>; | ||
getTables({ query, offset, limit, orderByFields }: GetTablesParams): Promise<TableListDc>; | ||
getLayers({ query, types, offset, limit, orderByFields }: GetLayersParams): Promise<ServiceListDc>; | ||
getResource({ resourceType, name }: GetResourceParams): Promise<void>; | ||
getProjects({ query, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ProjectsListDc>; | ||
getTables({ query, offset, limit, orderByFields, isFavorite, }: GetTablesParams): Promise<TableListDc>; | ||
getLayers({ query, types, offset, limit, orderByFields, isFavorite, }: GetLayersParams): Promise<ServiceListDc>; | ||
addResource({ resourceType, catalogData }: AddResourceParams): Promise<CatalogDataDc>; | ||
removeResource({ resourceType, resource, users }: RemoveResourceParams): Promise<void>; | ||
getResource({ resourceType, name }: GetResourceParams): Promise<ExtendedResourceInfoPubDc>; | ||
getNewResources(): Promise<NewResourcesTypesDc[]>; | ||
touchResources({ resourceType, resources }: TouchResourcesParams): Promise<void>; | ||
} | ||
export declare type GetProjectsParams = { | ||
/** Full text search filter that allow to query in alias and name fields. | ||
Additional, query string may contains special symbols for filter (by default search by full match) | ||
1. '^' - search any value that begins with query. | ||
2. '@' - search any value that contains query. */ | ||
/** */ | ||
query?: string; | ||
/** Objects limit per response. */ | ||
/** */ | ||
offset?: number; | ||
/** Objects count have to skip. */ | ||
/** */ | ||
limit?: number; | ||
/** A list of {ResourceInfoDc} fields for sorting. If a field starts with {-} ordering is by descending. */ | ||
/** */ | ||
orderByFields?: string[]; | ||
/** */ | ||
isFavorite?: boolean; | ||
}; | ||
export declare type GetTablesParams = { | ||
/** Full text search filter that allow to query in alias and name fields. | ||
Additional, query string may contains special symbols for filter (by default search by full match) | ||
1. '^' - search any value that begins with query. | ||
2. '@' - search any value that contains query. */ | ||
/** */ | ||
query?: string; | ||
/** Objects limit per response. */ | ||
/** */ | ||
offset?: number; | ||
/** Objects count have to skip. */ | ||
/** */ | ||
limit?: number; | ||
/** A list of {ResourceInfoDc} fields for sorting. If a field starts with {-} ordering is by descending. */ | ||
/** */ | ||
orderByFields?: string[]; | ||
/** */ | ||
isFavorite?: boolean; | ||
}; | ||
export declare type GetLayersParams = { | ||
/** Full text search filter that allow to query in alias and name fields. | ||
Additional, query string may contains special symbols for filter (by default search by full match) | ||
1. '^' - search any value that begins with query. | ||
2. '@' - search any value that contains query. */ | ||
/** */ | ||
query?: string; | ||
/** Filter by services types in comma separated way. */ | ||
/** */ | ||
types?: string[]; | ||
/** Objects limit per response. */ | ||
/** */ | ||
offset?: number; | ||
/** Objects count have to skip. */ | ||
/** */ | ||
limit?: number; | ||
/** A list of {ResourceInfoDc} fields for sorting. If a field starts with {-} ordering is by descending. */ | ||
/** */ | ||
orderByFields?: string[]; | ||
/** */ | ||
isFavorite?: boolean; | ||
}; | ||
export declare type GetResourceParams = { | ||
/** Resource type.SPCore.Kernel.Tools.ResourceType */ | ||
resourceType: 'tables' | 'layers' | 'projects'; | ||
/** Name of the resource. */ | ||
name: string; | ||
}; | ||
export declare type AddResourceParams = { | ||
/** Catalog resource type SPCore.Kernel.Tools.ResourceType. */ | ||
/** */ | ||
resourceType: 'tables' | 'layers' | 'projects'; | ||
/** Catalog data information SPCore.Connectors.Connectors.Base.Models.ResourceCatalog.CatalogDataDc. */ | ||
/** */ | ||
catalogData?: CatalogDataDc; | ||
}; | ||
export declare type RemoveResourceParams = { | ||
/** Catalog resource type SPCore.Kernel.Tools.ResourceType. */ | ||
/** */ | ||
resourceType: 'tables' | 'layers' | 'projects'; | ||
/** Full name of the resource. */ | ||
/** */ | ||
resource?: string; | ||
/** A list of users. */ | ||
/** */ | ||
users?: string[]; | ||
}; | ||
export declare type GetResourceParams = { | ||
/** */ | ||
resourceType: 'tables' | 'layers' | 'projects'; | ||
/** */ | ||
name: string; | ||
}; | ||
export declare type TouchResourcesParams = { | ||
/** */ | ||
resourceType?: 'tables' | 'layers' | 'projects'; | ||
/** */ | ||
resources?: string[]; | ||
}; |
@@ -9,13 +9,25 @@ /* | ||
export class ResourceCatalog extends ServiceBase { | ||
getProjects({ query, offset, limit, orderByFields }) { | ||
getProjects({ query, offset, limit, orderByFields, isFavorite, }) { | ||
return this.http | ||
.get(`${this.name}/projects`, { query, offset, limit, orderByFields }) | ||
.get(`${this.name}/projects`, { | ||
query, | ||
offset, | ||
limit, | ||
orderByFields, | ||
isFavorite, | ||
}) | ||
.json(); | ||
} | ||
getTables({ query, offset, limit, orderByFields }) { | ||
getTables({ query, offset, limit, orderByFields, isFavorite, }) { | ||
return this.http | ||
.get(`${this.name}/tables`, { query, offset, limit, orderByFields }) | ||
.get(`${this.name}/tables`, { | ||
query, | ||
offset, | ||
limit, | ||
orderByFields, | ||
isFavorite, | ||
}) | ||
.json(); | ||
} | ||
getLayers({ query, types, offset, limit, orderByFields }) { | ||
getLayers({ query, types, offset, limit, orderByFields, isFavorite, }) { | ||
return this.http | ||
@@ -28,8 +40,6 @@ .get(`${this.name}/layers`, { | ||
orderByFields, | ||
isFavorite, | ||
}) | ||
.json(); | ||
} | ||
getResource({ resourceType, name }) { | ||
return this.http.get(`${this.name}/${resourceType}/${name}`).then(() => { }); | ||
} | ||
addResource({ resourceType, catalogData }) { | ||
@@ -45,3 +55,18 @@ return this.http | ||
} | ||
getResource({ resourceType, name }) { | ||
return this.http | ||
.get(`${this.name}/${resourceType}/${name}`) | ||
.json(); | ||
} | ||
getNewResources() { | ||
return this.http | ||
.get(`${this.name}/getNewResources`) | ||
.json(); | ||
} | ||
touchResources({ resourceType, resources }) { | ||
return this.http | ||
.post(`${this.name}/touchResources`, null, { resourceType, resources }) | ||
.then(() => { }); | ||
} | ||
} | ||
//# sourceMappingURL=ResourceCatalog.js.map |
import { ServiceBase } from './ServiceBase'; | ||
import { ServiceListDc, ResourceDependencyDc, ServiceInfoDc, RemoteTileServiceConfigurationDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, ServiceManagerConfiguration, CompositeServiceConfigurationDc } from './data-contracts'; | ||
import { ServiceListDc, ResourceDependencyDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, ServiceInfoDc, WorkspaceConfigurationDc } from './data-contracts'; | ||
export declare class ServiceManager extends ServiceBase { | ||
getServiceList({ query, types, offset, limit, orderByFields, }: GetServiceListParams): Promise<ServiceListDc>; | ||
getServiceDepends(name: string): Promise<ResourceDependencyDc>; | ||
publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updateRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<void>; | ||
publishLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updateLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<void>; | ||
publishPostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updatePostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<void>; | ||
publishStyledLayerService(configuration?: StyledLayerServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
publishUserWorkspace(configuration?: ServiceManagerConfiguration): Promise<void>; | ||
checkWorkspaceName(name?: string): Promise<void>; | ||
publishCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
updateCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<void>; | ||
publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfoDc>; | ||
updateRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfo>; | ||
publishLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<TileServiceInfoDc>; | ||
updateLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<TileServiceInfoDc>; | ||
publishPostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>; | ||
updatePostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>; | ||
publishStyledLayerService(configuration?: StyledLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>; | ||
publishCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<CompositeServiceInfoDc>; | ||
updateCompositeService(configuration?: CompositeServiceConfigurationDc): Promise<CompositeServiceInfoDc>; | ||
publishWorkspaceService(configuration?: WorkspaceConfigurationDc): Promise<ServiceInfoDc>; | ||
} | ||
@@ -18,0 +17,0 @@ export declare type GetServiceListParams = { |
@@ -37,3 +37,3 @@ /* | ||
}) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
@@ -52,3 +52,3 @@ publishLocalTileService(configuration) { | ||
}) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
@@ -67,3 +67,3 @@ publishPostgresLayerService(configuration) { | ||
}) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
@@ -77,12 +77,2 @@ publishStyledLayerService(configuration) { | ||
} | ||
publishUserWorkspace(configuration) { | ||
return this.http | ||
.post(`${this.name}/workspace`, configuration) | ||
.then(() => { }); | ||
} | ||
checkWorkspaceName(name) { | ||
return this.http | ||
.get(`${this.name}/workspace/check`, { name }) | ||
.then(() => { }); | ||
} | ||
publishCompositeService(configuration) { | ||
@@ -100,5 +90,12 @@ return this.http | ||
}) | ||
.then(() => { }); | ||
.json(); | ||
} | ||
publishWorkspaceService(configuration) { | ||
return this.http | ||
.post(`${this.name}/services`, configuration, { | ||
type: 'PostgresWorkspace', | ||
}) | ||
.json(); | ||
} | ||
} | ||
//# sourceMappingURL=ServiceManager.js.map |
import { Service } from './Service'; | ||
import { TableListDc, DetailedTableInfoDc, UpdateTableDc, ResourceDependencyDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
import { TableListDc, DetailedTableInfoDc, UpdateTableDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
export declare class Tables extends Service { | ||
getTableList({ filter, offset, limit, orderByFields }: GetTableListParams): Promise<TableListDc>; | ||
getTableList({ filter, offset, limit, orderByFields, isFavorite, }: GetTableListParams): Promise<TableListDc>; | ||
createTable(data?: DetailedTableInfoDc): Promise<DetailedTableInfoDc>; | ||
updateTable(data?: UpdateTableDc): Promise<DetailedTableInfoDc>; | ||
getTableInfo(name: string): Promise<DetailedTableInfoDc>; | ||
dropTable(name: string): Promise<void>; | ||
updateTable({ name, data }: UpdateTableParams): Promise<DetailedTableInfoDc>; | ||
getTableDepends(name: string): Promise<ResourceDependencyDc>; | ||
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>; | ||
@@ -17,19 +16,15 @@ addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>; | ||
export declare type GetTableListParams = { | ||
/** Table name filter (support % and _ wildcards). */ | ||
/** */ | ||
filter?: string; | ||
/** First index to return. */ | ||
/** */ | ||
offset?: number; | ||
/** Max items to return. */ | ||
/** */ | ||
limit?: number; | ||
/** A list of {TableListDc} fields for sorting. If a field starts with {-} ordering is by descending. */ | ||
/** */ | ||
orderByFields?: string[]; | ||
/** */ | ||
isFavorite?: boolean; | ||
}; | ||
export declare type UpdateTableParams = { | ||
/** The name of the table. */ | ||
name: string; | ||
/** Table configuration. */ | ||
data?: UpdateTableDc; | ||
}; | ||
export declare type SetPermissionsParams = { | ||
/** Table name. */ | ||
/** */ | ||
name: string; | ||
@@ -40,3 +35,3 @@ /** All available permissions list. */ | ||
export declare type AddPermissionsParams = { | ||
/** Table name. */ | ||
/** */ | ||
name: string; | ||
@@ -47,5 +42,5 @@ /** All available permissions list. */ | ||
export declare type RemovePermissionsParams = { | ||
/** Table name. */ | ||
/** */ | ||
name: string; | ||
/** Exists users role. */ | ||
/** */ | ||
role: string; | ||
@@ -52,0 +47,0 @@ }; |
@@ -9,5 +9,5 @@ /* | ||
export class Tables extends Service { | ||
getTableList({ filter, offset, limit, orderByFields }) { | ||
getTableList({ filter, offset, limit, orderByFields, isFavorite, }) { | ||
return this.http | ||
.get(`tables`, { filter, offset, limit, orderByFields }) | ||
.get(`tables`, { filter, offset, limit, orderByFields, isFavorite }) | ||
.json(); | ||
@@ -18,2 +18,5 @@ } | ||
} | ||
updateTable(data) { | ||
return this.http.patch(`tables`, data).json(); | ||
} | ||
getTableInfo(name) { | ||
@@ -25,8 +28,2 @@ return this.http.get(`tables/${name}`).json(); | ||
} | ||
updateTable({ name, data }) { | ||
return this.http.patch(`tables/${name}`, data).json(); | ||
} | ||
getTableDepends(name) { | ||
return this.http.get(`tables/${name}/depends`).json(); | ||
} | ||
setPermissions({ name, Acl }) { | ||
@@ -33,0 +30,0 @@ return this.http |
@@ -6,2 +6,2 @@ export { Api } from './Api'; | ||
export { HTTPError, TimeoutError, HttpClient, } from './__generated__/HttpClient'; | ||
export { DetailedTableInfoDc } from './__generated__/data-contracts'; | ||
export * from './utils/typeGuards'; |
@@ -6,2 +6,3 @@ export { Api } from './Api'; | ||
export { HTTPError, TimeoutError, HttpClient, } from './__generated__/HttpClient'; | ||
export * from './utils/typeGuards'; | ||
//# sourceMappingURL=index.js.map |
import { DynamicLayer } from '@evergis/sgis/es/layers/DynamicLayer'; | ||
import { Bbox } from '@evergis/sgis/es/Bbox'; | ||
import { PostgresLayerServiceConfigurationDc } from '../__generated__/data-contracts'; | ||
import { Api } from '../Api'; | ||
@@ -8,4 +7,7 @@ export declare class EvergisDynamicLayer extends DynamicLayer { | ||
name: string; | ||
constructor(configuration: PostgresLayerServiceConfigurationDc, api: Api); | ||
constructor(configuration: EvergisDynamicLayerParams, api: Api); | ||
getUrl(bbox: Bbox, resolution: number): string; | ||
} | ||
export declare type EvergisDynamicLayerParams = { | ||
name: string; | ||
}; |
import { TileLayer } from '@evergis/sgis/es/layers/TileLayer'; | ||
import { Api } from '../Api'; | ||
import { RemoteTileServiceConfigurationDc } from '../__generated__/data-contracts'; | ||
export declare class EvergisTileLayer extends TileLayer { | ||
name: string; | ||
constructor(configuration: RemoteTileServiceConfigurationDc, api: Api); | ||
constructor(configuration: EvergisTileLayerParams, api: Api); | ||
} | ||
export declare type EvergisTileLayerParams = { | ||
name: string; | ||
}; |
@@ -7,9 +7,9 @@ import { PostgresLayerServiceConfigurationDc, RemoteTileServiceConfigurationDc, ServiceListDc, StyledLayerServiceConfigurationDc, ServiceInfoDc, FileUploadResponse } from '../__generated__/data-contracts'; | ||
getBasemaps(params: GetListParams): Promise<ServiceListDc>; | ||
createSubLayer(configuration: StyledLayerServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
createTileLayer({ remote, ...configuration }: CreateTileLayerParams): Promise<ServiceInfoDc>; | ||
createSubLayer(configuration: StyledLayerServiceConfigurationDc): Promise<import("../__generated__/data-contracts").FeatureLayerServiceInfoDc>; | ||
createTileLayer({ remote, ...configuration }: CreateTileLayerParams): Promise<import("../__generated__/data-contracts").TileServiceInfoDc>; | ||
uploadPreview(name: string, file: File): Promise<FileUploadResponse>; | ||
findOne(name: string): Promise<import("../__generated__/data-contracts").ExtendedServiceInfo>; | ||
findOne(name: string): Promise<ServiceInfoDc>; | ||
findAll(params: GetListParams): Promise<ServiceListDc>; | ||
create(configuration: PostgresLayerServiceConfigurationDc): Promise<ServiceInfoDc>; | ||
update(configuration: PostgresLayerServiceConfigurationDc): Promise<void>; | ||
create(configuration: PostgresLayerServiceConfigurationDc): Promise<import("../__generated__/data-contracts").FeatureLayerServiceInfoDc>; | ||
update(configuration: PostgresLayerServiceConfigurationDc): Promise<import("../__generated__/data-contracts").FeatureLayerServiceInfoDc>; | ||
remove(name: string): Promise<void>; | ||
@@ -16,0 +16,0 @@ } |
@@ -21,3 +21,3 @@ import { Tables as TablesService, } from '../__generated__/Tables'; | ||
update(table) { | ||
return this.updateTable({ name: table.name, data: table }); | ||
return this.updateTable(table); | ||
} | ||
@@ -24,0 +24,0 @@ remove(name) { |
{ | ||
"name": "@evergis/api", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"license": "ISC", | ||
@@ -15,3 +15,3 @@ "author": "everpoint", | ||
"watch": "tsc-watch --rootDir src --outDir es", | ||
"generate": "node ../api-generator/src/api-generator.js --url=http://spcore.everpoint.ru/swagger/v0.1/swagger.json -o ./src/__generated__", | ||
"generate": "node ../api-generator/src/api-generator.js --url=http://devpublic.everpoint.ru/sp/swagger/v0.1/swagger.json -o ./src/__generated__", | ||
"generateDoc": "npx typedoc --out ./docs/ ./dist/", | ||
@@ -18,0 +18,0 @@ "prepublishOnly": "npm ci && npm run build" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196659
158
4033