@evergis/api
Advanced tools
Comparing version 0.1.9 to 0.1.10
import { ServiceBase } from './ServiceBase'; | ||
import { FeaturesListDc, GeometryDc } from './data-contracts'; | ||
import { PagedFeaturesListDc, FeaturesListDc, GeometryDc } from './data-contracts'; | ||
export declare class CompositeFeatureLayer extends ServiceBase { | ||
getList({ ids, query, offset, limit, layers }: GetListParams): Promise<FeaturesListDc>; | ||
getByGeometry({ geometry, layers }: GetByGeometryParams): Promise<FeaturesListDc>; | ||
getByGeometryPost({ geometry, layers }: GetByGeometryPostParams): Promise<FeaturesListDc>; | ||
getList({ ids, query, offset, limit, layers }: GetListParams): Promise<PagedFeaturesListDc>; | ||
getByGeometry({ geometry, layers, extentSr }: GetByGeometryParams): Promise<FeaturesListDc>; | ||
getByGeometryPost({ geometry, layers, extentSr }: GetByGeometryPostParams): Promise<FeaturesListDc>; | ||
getLayerImage({ extent, size, layers, extentSr, condition, }: GetLayerImageParams): string; | ||
@@ -28,2 +28,4 @@ } | ||
layers?: number[]; | ||
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */ | ||
extentSr?: number; | ||
}; | ||
@@ -35,2 +37,4 @@ export declare type GetByGeometryPostParams = { | ||
layers?: number[]; | ||
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */ | ||
extentSr?: number; | ||
}; | ||
@@ -37,0 +41,0 @@ export declare type GetLayerImageParams = { |
@@ -14,10 +14,17 @@ /* | ||
} | ||
getByGeometry({ geometry, layers }) { | ||
getByGeometry({ geometry, layers, extentSr }) { | ||
return this.http | ||
.get(`${this.name}/features/getByGeometry`, { geometry, layers }) | ||
.get(`${this.name}/features/getByGeometry`, { | ||
geometry, | ||
layers, | ||
extentSr, | ||
}) | ||
.json(); | ||
} | ||
getByGeometryPost({ geometry, layers }) { | ||
getByGeometryPost({ geometry, layers, extentSr }) { | ||
return this.http | ||
.post(`${this.name}/features/getByGeometry`, geometry, { layers }) | ||
.post(`${this.name}/features/getByGeometry`, geometry, { | ||
layers, | ||
extentSr, | ||
}) | ||
.json(); | ||
@@ -24,0 +31,0 @@ } |
/** | ||
* Features list definition. | ||
*/ | ||
export declare type FeaturesListDc = { | ||
export declare type PagedFeaturesListDc = { | ||
/** The items of the response. */ | ||
@@ -84,2 +84,11 @@ items?: FeatureDc[]; | ||
/** | ||
* The response that contains a list of features. | ||
*/ | ||
export declare type FeaturesListDc = { | ||
/** The features list. */ | ||
items?: FeatureDc[]; | ||
/** Total count features. */ | ||
totalCount?: number; | ||
}; | ||
/** | ||
* The {ServiceInfoDc} provides information about the service. | ||
@@ -92,6 +101,6 @@ */ | ||
categories?: string[]; | ||
/** Resource name. */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
name?: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
@@ -110,3 +119,3 @@ alias?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -118,3 +127,3 @@ /** | ||
/** All available permissions list. */ | ||
acl: RolePermissionDc[]; | ||
data: RolePermissionDc[]; | ||
}; | ||
@@ -128,3 +137,3 @@ /** | ||
/** Acl set */ | ||
permissions: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -152,6 +161,6 @@ /** | ||
geometries?: ('unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint')[]; | ||
/** Resource name. */ | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
@@ -170,3 +179,3 @@ alias?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -185,6 +194,6 @@ /** | ||
geometries?: ('unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint')[]; | ||
/** Resource name. */ | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
@@ -203,3 +212,3 @@ alias?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -408,2 +417,4 @@ /** | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -463,3 +474,3 @@ /** | ||
/** */ | ||
fullName?: string; | ||
ownName?: string; | ||
/** */ | ||
@@ -478,3 +489,3 @@ alias?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -496,7 +507,7 @@ /** | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
/** */ | ||
acl?: { | ||
/** */ | ||
[key: string]: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
[key: string]: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -584,3 +595,3 @@ /** */ | ||
/** */ | ||
fullName?: string; | ||
ownName?: string; | ||
/** */ | ||
@@ -599,3 +610,3 @@ alias?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -620,2 +631,4 @@ /** | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -711,3 +724,3 @@ /** | ||
/** */ | ||
fullName?: string; | ||
ownName?: string; | ||
/** */ | ||
@@ -726,3 +739,3 @@ alias?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -739,2 +752,4 @@ /** | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -756,2 +771,4 @@ /** | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -770,2 +787,4 @@ /** | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -778,4 +797,2 @@ /** | ||
name?: string; | ||
/** Gets or sets composite layer type */ | ||
type?: string; | ||
/** Gets or sets composite layer alias. */ | ||
@@ -805,3 +822,3 @@ alias?: string; | ||
/** */ | ||
fullName?: string; | ||
ownName?: string; | ||
/** */ | ||
@@ -820,3 +837,3 @@ alias?: string; | ||
/** */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -837,6 +854,2 @@ /** | ||
maxResolution?: number; | ||
/** Gets layer state. */ | ||
isValid?: boolean; | ||
/** Gets layer initialization error. */ | ||
error?: any /** Unknown props */; | ||
}; | ||
@@ -869,6 +882,6 @@ /** | ||
export declare type ProjectInfoDc = { | ||
/** Resource name. */ | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
@@ -887,3 +900,3 @@ alias?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -898,6 +911,6 @@ /** | ||
acl?: AccessControlListDc; | ||
/** Resource name. */ | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
@@ -916,3 +929,3 @@ alias?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -952,2 +965,79 @@ /** | ||
/** | ||
* undefined | ||
*/ | ||
export declare type SharedProjectConfigurationDc = { | ||
/** */ | ||
options?: SharedProjectMapOptionsDc; | ||
/** */ | ||
minScale?: number; | ||
/** */ | ||
maxScale?: number; | ||
/** Composite service layers list. */ | ||
layers: CompositeLayerConfigurationDc[]; | ||
/** Name of the service. */ | ||
name: string; | ||
/** Human friendly name of the service. */ | ||
alias?: string; | ||
/** Description of the service. */ | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type SharedProjectMapOptionsDc = { | ||
/** */ | ||
basemapChangeEnabled?: boolean; | ||
/** */ | ||
selectEnabled?: boolean; | ||
/** */ | ||
visibilityChangeEnabled?: boolean; | ||
}; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type SharedProjectInfoDc = { | ||
/** */ | ||
projectName?: string; | ||
/** */ | ||
position?: number[]; | ||
/** */ | ||
resolution?: number; | ||
/** */ | ||
srid?: number; | ||
/** */ | ||
baseMapName?: string; | ||
/** */ | ||
options?: SharedProjectMapOptionsDc; | ||
/** */ | ||
minScale?: number; | ||
/** */ | ||
maxScale?: number; | ||
/** Composite layer list. */ | ||
layers?: CompositeLayerInfoDc[]; | ||
/** The type of the resource. */ | ||
type: string; | ||
/** The category of the service. */ | ||
categories?: string[]; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: 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' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** | ||
* Information necessary for adds/removes resources to/from catalog. | ||
@@ -971,6 +1061,6 @@ */ | ||
usedByUsers?: string[]; | ||
/** Resource name. */ | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
@@ -989,3 +1079,3 @@ alias?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -1305,8 +1395,6 @@ /** | ||
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; | ||
/** Configuration for the project service. */ | ||
projectServiceConfiguration: ProjectServiceConfiguration; | ||
projectServiceConfiguration: ProjectServiceConfigurationDc; | ||
/** Name of the service. */ | ||
@@ -1318,2 +1406,4 @@ name: string; | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -1333,2 +1423,4 @@ /** | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -1338,3 +1430,3 @@ /** | ||
*/ | ||
export declare type ProjectServiceConfiguration = { | ||
export declare type ProjectServiceConfigurationDc = { | ||
/** Sets the maximum number of projects this service can contain. If exceeded, new project creation attempt | ||
@@ -1349,2 +1441,4 @@ will case an error. */ | ||
description?: string; | ||
/** Service access control list. */ | ||
acl?: AccessControlListDc; | ||
}; | ||
@@ -1370,6 +1464,6 @@ /** | ||
geometries?: ('unknown' | 'point' | 'polyline' | 'polygon' | 'envelope' | 'multipoint')[]; | ||
/** Resource name. */ | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
fullName?: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
@@ -1388,3 +1482,3 @@ alias?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure'; | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
@@ -1484,1 +1578,289 @@ /** | ||
}; | ||
/** | ||
* The symbol that draws a feature as a circle. | ||
*/ | ||
export declare type CirclePointSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
size?: ParameterDcDouble; | ||
/** */ | ||
fillColor?: ParameterDcColor; | ||
/** */ | ||
strokeColor?: ParameterDcColor; | ||
/** */ | ||
strokeWidth?: ParameterDcDouble; | ||
/** */ | ||
offset?: ParameterDcDouble[]; | ||
}; | ||
/** | ||
* Number parameter of a symbol. The parameter can be represented as a simple number, or | ||
as an object with a "type" parameter specified. | ||
*/ | ||
export declare type ParameterDcDouble = { | ||
/** Type of the parameter. Possible values are "simple", "byAttribute", "scale". */ | ||
type?: string; | ||
}; | ||
/** | ||
* Number parameter of a symbol. The parameter can be represented as a simple number, or | ||
as an object with a "type" parameter specified. | ||
*/ | ||
export declare type ParameterDcColor = { | ||
/** Type of the parameter. Possible values are "simple", "byAttribute", "scale". */ | ||
type?: string; | ||
}; | ||
/** | ||
* Composite symbol. | ||
*/ | ||
export declare type CompositeSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
childSymbols?: SymbolDc[]; | ||
}; | ||
/** | ||
* A single image point symbol with an outer stroke. | ||
*/ | ||
export declare type ImagePointSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
image?: string; | ||
/** */ | ||
width?: ParameterDcDouble; | ||
/** */ | ||
height?: ParameterDcDouble; | ||
/** */ | ||
offset?: ParameterDcDouble[]; | ||
}; | ||
/** | ||
* Image polygon symbol. | ||
*/ | ||
export declare type ImagePolygonSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
image?: string; | ||
/** */ | ||
fillColor?: ParameterDcColor; | ||
/** */ | ||
strokeColor?: ParameterDcColor; | ||
/** */ | ||
strokeWidth?: ParameterDcDouble; | ||
}; | ||
/** | ||
* Base class for labels. | ||
*/ | ||
export declare type LabelSymbolDc = SymbolDc & { | ||
/** */ | ||
fieldFormat?: string; | ||
/** */ | ||
fontFamily?: string; | ||
/** */ | ||
fontStyle?: 'normal' | 'oblique' | 'italic'; | ||
/** */ | ||
fontWeight?: 'Thin' | 'ExtraLight' | 'UltraLight' | 'Light' | 'SemiLight' | 'Normal' | 'Regular' | 'Medium' | 'DemiBold' | 'SemiBold' | 'Bold' | 'ExtraBold' | 'UltraBold' | 'Black' | 'Heavy' | 'ExtraBlack' | 'UltraBlack'; | ||
/** */ | ||
fontColor?: ParameterDcColor; | ||
/** */ | ||
fontSize?: ParameterDcDouble; | ||
/** */ | ||
horizontalAlignment?: 'right' | 'left' | 'center' | 'justified'; | ||
/** */ | ||
verticalAlignment?: 'top' | 'bottom' | 'middle'; | ||
/** */ | ||
haloColor?: ParameterDcColor; | ||
/** */ | ||
haloWidth?: number; | ||
/** */ | ||
offset?: ParameterDcDouble[]; | ||
/** */ | ||
type?: string; | ||
}; | ||
/** | ||
* The point symbol drawing as image with the mask. | ||
*/ | ||
export declare type MaskedImagePointSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
width?: ParameterDcDouble; | ||
/** */ | ||
height?: ParameterDcDouble; | ||
/** */ | ||
offset?: ParameterDcDouble[]; | ||
/** */ | ||
image?: string; | ||
/** */ | ||
imageMask?: string; | ||
/** */ | ||
maskedColor?: ParameterDcColor; | ||
/** */ | ||
angle?: ParameterDcDouble; | ||
}; | ||
/** | ||
* Polygon symbol drawing as image with the mask. | ||
*/ | ||
export declare type MaskedImagePolygonSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
fillColor?: ParameterDcColor; | ||
/** */ | ||
strokeColor?: ParameterDcColor; | ||
/** */ | ||
strokeWidth?: ParameterDcDouble; | ||
/** */ | ||
image?: string; | ||
/** */ | ||
imageMask?: string; | ||
/** */ | ||
maskedColor?: ParameterDcColor; | ||
}; | ||
/** | ||
* A multipoint symbol. | ||
*/ | ||
export declare type MultipointSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
pointSymbol?: SymbolDc; | ||
}; | ||
/** | ||
* Label of a point object. | ||
*/ | ||
export declare type PointLabelSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
fieldFormat?: string; | ||
/** */ | ||
fontFamily?: string; | ||
/** */ | ||
fontStyle?: 'normal' | 'oblique' | 'italic'; | ||
/** */ | ||
fontWeight?: 'Thin' | 'ExtraLight' | 'UltraLight' | 'Light' | 'SemiLight' | 'Normal' | 'Regular' | 'Medium' | 'DemiBold' | 'SemiBold' | 'Bold' | 'ExtraBold' | 'UltraBold' | 'Black' | 'Heavy' | 'ExtraBlack' | 'UltraBlack'; | ||
/** */ | ||
fontColor?: ParameterDcColor; | ||
/** */ | ||
fontSize?: ParameterDcDouble; | ||
/** */ | ||
horizontalAlignment?: 'right' | 'left' | 'center' | 'justified'; | ||
/** */ | ||
verticalAlignment?: 'top' | 'bottom' | 'middle'; | ||
/** */ | ||
haloColor?: ParameterDcColor; | ||
/** */ | ||
haloWidth?: number; | ||
/** */ | ||
offset?: ParameterDcDouble[]; | ||
}; | ||
/** | ||
* Label for polygon objects. It is drawn at the most appropriate place inside a polygon. | ||
*/ | ||
export declare type PolygonLabelSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
fieldFormat?: string; | ||
/** */ | ||
fontFamily?: string; | ||
/** */ | ||
fontStyle?: 'normal' | 'oblique' | 'italic'; | ||
/** */ | ||
fontWeight?: 'Thin' | 'ExtraLight' | 'UltraLight' | 'Light' | 'SemiLight' | 'Normal' | 'Regular' | 'Medium' | 'DemiBold' | 'SemiBold' | 'Bold' | 'ExtraBold' | 'UltraBold' | 'Black' | 'Heavy' | 'ExtraBlack' | 'UltraBlack'; | ||
/** */ | ||
fontColor?: ParameterDcColor; | ||
/** */ | ||
fontSize?: ParameterDcDouble; | ||
/** */ | ||
horizontalAlignment?: 'right' | 'left' | 'center' | 'justified'; | ||
/** */ | ||
verticalAlignment?: 'top' | 'bottom' | 'middle'; | ||
/** */ | ||
haloColor?: ParameterDcColor; | ||
/** */ | ||
haloWidth?: number; | ||
/** */ | ||
offset?: ParameterDcDouble[]; | ||
}; | ||
/** | ||
* A simple polygon symbol. | ||
*/ | ||
export declare type PolygonSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
fillColor?: ParameterDcColor; | ||
/** */ | ||
strokeColor?: ParameterDcColor; | ||
/** */ | ||
strokeWidth?: ParameterDcDouble; | ||
}; | ||
/** | ||
* Label for polyline objects. It is drawn repeatedly along a line. | ||
*/ | ||
export declare type PolylineLabelSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
labelRepeatDistance?: number; | ||
/** */ | ||
criticalAngle?: number; | ||
/** */ | ||
invertLabelDirection?: boolean; | ||
/** */ | ||
offsetFromSymbol?: boolean; | ||
/** */ | ||
offset?: number[]; | ||
/** */ | ||
maxWidth?: number; | ||
/** */ | ||
fieldFormat?: string; | ||
/** */ | ||
fontFamily?: string; | ||
/** */ | ||
fontStyle?: 'normal' | 'oblique' | 'italic'; | ||
/** */ | ||
fontWeight?: 'Thin' | 'ExtraLight' | 'UltraLight' | 'Light' | 'SemiLight' | 'Normal' | 'Regular' | 'Medium' | 'DemiBold' | 'SemiBold' | 'Bold' | 'ExtraBold' | 'UltraBold' | 'Black' | 'Heavy' | 'ExtraBlack' | 'UltraBlack'; | ||
/** */ | ||
fontColor?: ParameterDcColor; | ||
/** */ | ||
fontSize?: ParameterDcDouble; | ||
/** */ | ||
horizontalAlignment?: 'right' | 'left' | 'center' | 'justified'; | ||
/** */ | ||
verticalAlignment?: 'top' | 'bottom' | 'middle'; | ||
/** */ | ||
haloColor?: ParameterDcColor; | ||
/** */ | ||
haloWidth?: number; | ||
}; | ||
/** | ||
* The symbol that draws a feature as a square. | ||
*/ | ||
export declare type PolylineSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
strokeWidth?: ParameterDcDouble; | ||
/** */ | ||
strokeColor?: ParameterDcColor; | ||
}; | ||
/** | ||
* The symbol that draws a feature as a square. | ||
*/ | ||
export declare type SquarePointSymbolDc = SymbolDc & { | ||
/** */ | ||
type?: string; | ||
/** */ | ||
size?: ParameterDcDouble; | ||
/** */ | ||
fillColor?: ParameterDcColor; | ||
/** */ | ||
strokeColor?: ParameterDcColor; | ||
/** */ | ||
strokeWidth?: ParameterDcDouble; | ||
/** */ | ||
offset?: ParameterDcDouble[]; | ||
}; |
import { ServiceBase } from './ServiceBase'; | ||
import { FeaturesListDc, LayerUpdateInfoDc, FeatureDc, GeometryDc, EnvelopeDc } from './data-contracts'; | ||
import { PagedFeaturesListDc, LayerUpdateInfoDc, FeatureDc, FeaturesListDc, GeometryDc, EnvelopeDc } from './data-contracts'; | ||
export declare class FeatureLayer extends ServiceBase { | ||
getList({ ids, query, offset, limit }: GetListParams): Promise<FeaturesListDc>; | ||
getList({ ids, query, offset, limit }: GetListParams): Promise<PagedFeaturesListDc>; | ||
createFeatures(features?: FeatureDc[]): Promise<LayerUpdateInfoDc>; | ||
@@ -11,5 +11,5 @@ deleteFeatures(ids?: string[]): Promise<LayerUpdateInfoDc>; | ||
getLayerImage({ extent, size, extentSr, condition, styleId, }: GetLayerImageParams): string; | ||
getByGeometry(geometry?: number[]): Promise<FeaturesListDc>; | ||
getByGeometryPost(geometry?: GeometryDc): Promise<FeaturesListDc>; | ||
getByGeometryGet({ imageRectangle, envelope, clickPoint, useFilledSymbols, }: GetByGeometryGetParams): Promise<FeaturesListDc>; | ||
getByGeometry({ geometry, extentSr }: GetByGeometryParams): Promise<FeaturesListDc>; | ||
getByGeometryPost({ geometry, extentSr }: GetByGeometryPostParams): Promise<FeaturesListDc>; | ||
getByGeometryGet({ imageRectangle, envelope, clickPoint, extentSr, useFilledSymbols, }: GetByGeometryGetParams): Promise<FeaturesListDc>; | ||
getLayerExtent({ filterCondition, sr }: GetLayerExtentParams): Promise<EnvelopeDc>; | ||
@@ -39,2 +39,16 @@ } | ||
}; | ||
export declare type GetByGeometryParams = { | ||
/** Geometry to selects. Examples: | ||
for point geometry=x,y; | ||
for envelope: geometry=xmin,ymin,xmax,ymax; */ | ||
geometry?: number[]; | ||
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */ | ||
extentSr?: number; | ||
}; | ||
export declare type GetByGeometryPostParams = { | ||
/** Geometry to selects */ | ||
geometry?: GeometryDc; | ||
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */ | ||
extentSr?: number; | ||
}; | ||
export declare type GetByGeometryGetParams = { | ||
@@ -47,2 +61,4 @@ /** Screen image bbox rectangle. */ | ||
clickPoint?: number[]; | ||
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */ | ||
extentSr?: number; | ||
/** If true, include transparent pixels too. */ | ||
@@ -49,0 +65,0 @@ useFilledSymbols?: boolean; |
@@ -46,13 +46,13 @@ /* | ||
} | ||
getByGeometry(geometry) { | ||
getByGeometry({ geometry, extentSr }) { | ||
return this.http | ||
.get(`${this.name}/features/getByGeometry`, { geometry }) | ||
.get(`${this.name}/features/getByGeometry`, { geometry, extentSr }) | ||
.json(); | ||
} | ||
getByGeometryPost(geometry) { | ||
getByGeometryPost({ geometry, extentSr }) { | ||
return this.http | ||
.post(`${this.name}/features/getByGeometry`, geometry) | ||
.post(`${this.name}/features/getByGeometry`, geometry, { extentSr }) | ||
.json(); | ||
} | ||
getByGeometryGet({ imageRectangle, envelope, clickPoint, useFilledSymbols, }) { | ||
getByGeometryGet({ imageRectangle, envelope, clickPoint, extentSr, useFilledSymbols, }) { | ||
return this.http | ||
@@ -63,2 +63,3 @@ .get(`${this.name}/features/getByGeometryByClick`, { | ||
clickPoint, | ||
extentSr, | ||
useFilledSymbols, | ||
@@ -65,0 +66,0 @@ }) |
@@ -28,7 +28,7 @@ import { Service } from './Service'; | ||
getLayerExtent({ name, filterCondition, sr }: GetLayerExtentParams): Promise<EnvelopeDc>; | ||
getByGeometry({ name, geometry }: GetByGeometryParams): Promise<FeaturesListDc>; | ||
getByGeometryPost({ name, geometry }: GetByGeometryPostParams): Promise<FeaturesListDc>; | ||
getByGeometry({ name, geometry, extentSr }: GetByGeometryParams): Promise<FeaturesListDc>; | ||
getByGeometryPost({ name, geometry, extentSr }: GetByGeometryPostParams): Promise<FeaturesListDc>; | ||
deleteFeatures({ ids, name }: DeleteFeaturesParams): Promise<LayerUpdateInfoDc>; | ||
getTilesLayerImage({ name, x, y, z }: GetTilesLayerImageParams): string; | ||
getByGeometryGet({ name, imageRectangle, envelope, clickPoint, useFilledSymbols, }: GetByGeometryGetParams): Promise<FeaturesListDc>; | ||
getByGeometryGet({ name, imageRectangle, envelope, clickPoint, extentSr, useFilledSymbols, }: GetByGeometryGetParams): Promise<FeaturesListDc>; | ||
} | ||
@@ -132,2 +132,4 @@ export declare type GetLayersListParams = { | ||
geometry?: number[]; | ||
/** */ | ||
extentSr?: number; | ||
}; | ||
@@ -139,2 +141,4 @@ export declare type GetByGeometryPostParams = { | ||
geometry?: GeometryDc; | ||
/** */ | ||
extentSr?: number; | ||
}; | ||
@@ -167,3 +171,5 @@ export declare type DeleteFeaturesParams = { | ||
/** */ | ||
extentSr?: number; | ||
/** */ | ||
useFilledSymbols?: boolean; | ||
}; |
@@ -131,10 +131,10 @@ /* | ||
} | ||
getByGeometry({ name, geometry }) { | ||
getByGeometry({ name, geometry, extentSr }) { | ||
return this.http | ||
.get(`layers/${name}/features/getByGeometry`, { geometry }) | ||
.get(`layers/${name}/features/getByGeometry`, { geometry, extentSr }) | ||
.json(); | ||
} | ||
getByGeometryPost({ name, geometry }) { | ||
getByGeometryPost({ name, geometry, extentSr }) { | ||
return this.http | ||
.post(`layers/${name}/features/getByGeometry`, geometry) | ||
.post(`layers/${name}/features/getByGeometry`, geometry, { extentSr }) | ||
.json(); | ||
@@ -150,3 +150,3 @@ } | ||
} | ||
getByGeometryGet({ name, imageRectangle, envelope, clickPoint, useFilledSymbols, }) { | ||
getByGeometryGet({ name, imageRectangle, envelope, clickPoint, extentSr, useFilledSymbols, }) { | ||
return this.http | ||
@@ -157,2 +157,3 @@ .get(`layers/${name}/features/getByGeometryByClick`, { | ||
clickPoint, | ||
extentSr, | ||
useFilledSymbols, | ||
@@ -159,0 +160,0 @@ }) |
import { Service } from './Service'; | ||
import { ProjectsListDc, ExtendedProjectInfoDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
import { ProjectsListDc, ExtendedProjectInfoDc, SharedProjectInfoDc, SharedProjectConfigurationDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
export declare class Projects extends Service { | ||
@@ -7,2 +7,4 @@ getProjectsList({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsListParams): Promise<ProjectsListDc>; | ||
updateProject(info?: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>; | ||
createShareProject({ projectName, configuration }: CreateShareProjectParams): Promise<SharedProjectInfoDc>; | ||
removeShareProject(projectName: string): Promise<void>; | ||
getProjectInfo(name: string): Promise<ExtendedProjectInfoDc>; | ||
@@ -28,2 +30,8 @@ dropProject(name: string): Promise<void>; | ||
}; | ||
export declare type CreateShareProjectParams = { | ||
/** */ | ||
projectName: string; | ||
/** */ | ||
configuration?: SharedProjectConfigurationDc; | ||
}; | ||
export declare type SetPermissionsParams = { | ||
@@ -30,0 +38,0 @@ /** */ |
@@ -20,2 +20,12 @@ /* | ||
} | ||
createShareProject({ projectName, configuration }) { | ||
return this.http | ||
.post(`projects/projects/${projectName}/share`, configuration) | ||
.json(); | ||
} | ||
removeShareProject(projectName) { | ||
return this.http | ||
.delete(`projects/projects/${projectName}/share`) | ||
.then(() => { }); | ||
} | ||
getProjectInfo(name) { | ||
@@ -22,0 +32,0 @@ return this.http.get(`projects/${name}`).json(); |
@@ -7,3 +7,3 @@ import { IHttpClient } from './HttpClient'; | ||
constructor(info: ServiceInfoDc, http: IHttpClient); | ||
readonly name: string; | ||
readonly name: string | undefined; | ||
} |
{ | ||
"name": "@evergis/api", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "author": "everpoint", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
206236
4420
152
1