Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evergis/api

Package Overview
Dependencies
Maintainers
6
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evergis/api - npm Package Compare versions

Comparing version 0.1.55 to 0.1.57

es/__generated__/Workspaces.d.ts

11

es/__generated__/FeatureLayer.d.ts

@@ -16,2 +16,3 @@ import { ServiceBase } from './ServiceBase';

distincts({ attribute, limit, startsWith, ignoreDefaultCondition, }: DistinctsParams): Promise<AttributeDistinctsDc>;
getTilesLayerImage({ x, y, z, ids }: GetTilesLayerImageParams): string;
}

@@ -96,1 +97,11 @@ export declare type GetListParams = {

};
export declare type GetTilesLayerImageParams = {
/** X */
x: number;
/** Y */
y: number;
/** Z */
z: number;
/** Tile sets to render. */
ids?: number[];
};

3

es/__generated__/FeatureLayer.js

@@ -92,3 +92,6 @@ /*

}
getTilesLayerImage({ x, y, z, ids }) {
return this.http.createUrl(`${this.name}/tile/${z}/${x}/${y}`, { ids });
}
}
//# sourceMappingURL=FeatureLayer.js.map

162

es/__generated__/Layers.d.ts
import { Service } from './Service';
import { ServiceListDc, ServiceInfoDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, RemoteTileServiceInfo, SharedProjectInfoDc, SharedProjectConfigurationDc, PagedFeaturesListDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc, AttributeDistinctsDc, FileUploadResponse, ResourceDependenciesDc, AccessControlListDc } from './data-contracts';
import { ServiceListDc, ServiceInfoDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, TileServiceInfoDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, RemoteTileServiceInfo, SharedProjectInfoDc, SharedProjectConfigurationDc, PagedFeaturesListDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc, AttributeDistinctsDc, FileUploadResponse, ResourceDependenciesDc, AccessControlListDc } from './data-contracts';
export declare class Layers extends Service {

@@ -8,2 +8,3 @@ getLayersList({ filter, types, offset, limit, orderByFields, isFavorite, }: GetLayersListParams): Promise<ServiceListDc>;

publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfoDc>;
publishPostgresTileCatalogService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>;
publishLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<TileServiceInfoDc>;

@@ -19,3 +20,3 @@ publishPostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>;

reloadService(name: string): Promise<ServiceInfoDc>;
getFeatures({ name, query, offset, limit, wkid, sort }: GetFeaturesParams): Promise<PagedFeaturesListDc>;
getFeatures({ name, query, offset, limit, wkid, sort, withGeom, attributes, }: GetFeaturesParams): Promise<PagedFeaturesListDc>;
createFeatures({ name, features }: CreateFeaturesParams): Promise<LayerUpdateInfoDc>;

@@ -33,3 +34,3 @@ deleteFeature({ id, name }: DeleteFeatureParams): Promise<LayerUpdateInfoDc>;

deleteFeatures({ ids, name }: DeleteFeaturesParams): Promise<LayerUpdateInfoDc>;
getTilesLayerImage({ name, x, y, z }: GetTilesLayerImageParams): string;
getTilesLayerImage({ name, x, y, z, ids }: GetTilesLayerImageParams): string;
getByGeometryGet({ name, imageRectangle, envelope, clickPoint, extentSr, targetSr, useFilledSymbols, query, }: GetByGeometryGetParams): Promise<FeaturesListDc>;

@@ -46,181 +47,194 @@ getPreview(name: string): string;

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[];
/** */
/** Filters layers list by users favorite. */
isFavorite?: boolean;
};
export declare type UpdateRemoteTileServiceParams = {
/** */
/** The full name of the layer */
name: string;
/** */
/** The service configuration. */
configuration?: RemoteTileServiceConfigurationDc;
};
export declare type UpdateLocalTileServiceParams = {
/** */
/** The full name of the layer */
name: string;
/** */
/** The service configuration. */
configuration?: RemoteTileServiceConfigurationDc;
};
export declare type UpdatePostgresLayerServiceParams = {
/** */
/** The full name of the layer */
name: string;
/** */
/** The service configuration. */
configuration?: PostgresLayerServiceConfigurationDc;
};
export declare type UpdateSharedProjectServiceParams = {
/** */
/** The full name of the layer */
name: string;
/** */
/** The service configuration. */
configuration?: SharedProjectConfigurationDc;
};
export declare type UpdateCompositeServiceParams = {
/** */
/** The full name of the layer */
name: string;
/** */
/** The service configuration. */
configuration?: CompositeServiceConfigurationDc;
};
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;
/** */
/** Spatial reference of returned features. */
wkid?: number;
/** */
/** Comma separated list of attributes by which to sort the resulting feature list.
If the attribute name is preceded with the "-" sign, sorting by this attribute will be
in descending order. */
sort?: string[];
/** If set to true, the geometry will not be returned for features. */
withGeom?: boolean;
/** Comma separated list of attributes to be returned. If not set, all attributes are returned. */
attributes?: string[];
};
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;
/** */
/** Spatial reference of returned features. */
wkid?: 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;
/** */
/** Id of the override style to apply to the layer. If not set, the layer original style is used. */
styleId?: 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 ClassifyParams = {
/** */
/** The name of the layer. */
name: string;
/** */
/** The name of the attibute. */
attribute?: string;
/** */
/** The number of classes. */
classes?: number;
/** */
/** Sets required values precision. */
precision?: 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[];
/** */
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */
extentSr?: number;
/** */
/** Spatial reference wkid of returned features. */
targetSr?: number;
};
export declare type GetByGeometryPostParams = {
/** */
/** Full name of the layer. */
name: string;
/** */
/** Geometry to selects */
geometry?: GeometryDc;
/** */
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */
extentSr?: number;
/** */
/** Spatial reference wkid of returned features. */
targetSr?: number;
};
export declare type DistinctsParams = {
/** */
/** Full name of the layer. */
name: string;
/** */
/** Attribute name. */
attribute?: string;
/** */
/** Limit the number of returned values. */
limit?: number;
/** */
/** Filter values by startWith string pattern. */
startsWith?: string;
/** */
/** Ignore default layer condition. */
ignoreDefaultCondition?: boolean;
};
export declare type DeleteFeaturesParams = {
/** */
/** Features ids. */
ids?: string[];
/** */
/** Full name of the layer. */
name: string;
};
export declare type GetTilesLayerImageParams = {
/** */
/** Full name of the layer. */
name: string;
/** */
/** X */
x: number;
/** */
/** Y */
y: number;
/** */
/** Z */
z: number;
/** Tile sets to render. */
ids?: number[];
};
export declare type GetByGeometryGetParams = {
/** */
/** The name of the layer */
name: string;
/** */
/** Screen image bbox rectangle. */
imageRectangle?: number[];
/** */
/** Envelope geometry for screen rectangle. */
envelope?: number[];
/** */
/** Click position on screen rectangle. */
clickPoint?: number[];
/** */
/** Spatial reference of the extent. If not specified, the layer spatial reference is assumed. */
extentSr?: number;
/** */
/** Spatial reference wkid of returned features. */
targetSr?: number;
/** */
/** If true, include transparent pixels too. */
useFilledSymbols?: boolean;
/** */
/** String condition to filter the features by. */
query?: string;

@@ -227,0 +241,0 @@ };

@@ -32,2 +32,7 @@ /*

}
publishPostgresTileCatalogService(configuration) {
return this.http
.post(`layers`, configuration, { type: 'PostgresTileLayerService' })
.json();
}
publishLocalTileService(configuration) {

@@ -81,5 +86,13 @@ return this.http

}
getFeatures({ name, query, offset, limit, wkid, sort }) {
getFeatures({ name, query, offset, limit, wkid, sort, withGeom, attributes, }) {
return this.http
.get(`layers/${name}/features`, { query, offset, limit, wkid, sort })
.get(`layers/${name}/features`, {
query,
offset,
limit,
wkid,
sort,
withGeom,
attributes,
})
.json();

@@ -161,4 +174,4 @@ }

}
getTilesLayerImage({ name, x, y, z }) {
return this.http.createUrl(`layers/${name}/tile/${z}/${x}/${y}`);
getTilesLayerImage({ name, x, y, z, ids }) {
return this.http.createUrl(`layers/${name}/tile/${z}/${x}/${y}`, { ids });
}

@@ -165,0 +178,0 @@ getByGeometryGet({ name, imageRectangle, envelope, clickPoint, extentSr, targetSr, useFilledSymbols, query, }) {

@@ -21,45 +21,45 @@ import { Service } from './Service';

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[];
/** */
/** Filters projects list by users favorite. */
isFavorite?: boolean;
};
export declare type CreateShareProjectParams = {
/** */
/** The name of the project to share. */
name: string;
/** */
/** The configuration of */
configuration?: SharedProjectConfigurationDc;
};
export declare type UpdateProjectParams = {
/** */
/** The name of the project. */
name: string;
/** */
/** Project info. */
info?: ExtendedProjectInfoDc;
};
export declare type SetPermissionsParams = {
/** */
/** Project name. */
name: string;
/** */
/** New data. */
data?: AccessControlListDc;
};
export declare type AddPermissionsParams = {
/** */
/** Resource name. */
name: string;
/** */
/** Acl to add. */
data?: AccessControlListDc;
};
export declare type RemovePermissionsParams = {
/** */
/** Resource name. */
name: string;
/** */
/** Exists users role. */
role: string;
};
export declare type SetPreviewParams = {
/** */
/** The name of the resource. */
name: string;

@@ -66,0 +66,0 @@ /** The file to upload. */

import { ServiceBase } from './ServiceBase';
import { SessionInfoDc, AuthorizationData } from './data-contracts';
import { SessionInfoDc, AuthorizationData, ImportDataSchema, ClientNotificationDc, TemplateModelDc, ProjectsListDc, TableListDc, ServiceListDc, CatalogDataDc, ResourceDc, NewResourcesTypesDc, WorkspaceLimitsDc, TaskStatusDataDc, TaskInfoDc, TaskProgressDc, CopyTaskParametersDc, AggregateTaskParametersDc, BufferTaskParametersDc, UploadRasterTaskParametersDc, AvailabilityAreaTaskDc, UnionTaskParametersDc, OverlayTaskParametersDc, FilterCopyTaskParametersDc, PipelineTaskParametersDc, FileUploadResponse, StyleDc, StyleCreationResponseDc } from './data-contracts';
export declare class Services extends ServiceBase {

@@ -8,2 +8,167 @@ findUserByName(startWith?: string): Promise<string[]>;

closeSession(id?: string): Promise<string>;
addFavorites({ resourceType, resources }: AddFavoritesParams): Promise<void>;
removeFavorites({ resourceType, resources }: RemoveFavoritesParams): Promise<void>;
getDataSchema(fileId?: string): Promise<ImportDataSchema>;
getExcelDataSchema({ fileId, attributeNameRowNumber, aliasRowNumber, }: GetExcelDataSchemaParams): Promise<ImportDataSchema>;
getSubscriptionList(): Promise<string[]>;
subscribeOperation(tag?: string): Promise<void>;
unsubscribeOperation(tag?: string): Promise<void>;
getNotifications(): Promise<ClientNotificationDc[]>;
print(printTemplate?: TemplateModelDc): Promise<Blob>;
getProjects({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ProjectsListDc>;
getTables({ filter, offset, limit, orderByFields, isFavorite, }: GetTablesParams): Promise<TableListDc>;
getLayers({ filter, types, offset, limit, orderByFields, isFavorite, }: GetLayersParams): Promise<ServiceListDc>;
addResource({ resourceType, catalogData }: AddResourceParams): Promise<void>;
addResources({ userName, resources }: AddResourcesParams): Promise<void>;
removeResource({ resourceType, catalogData }: RemoveResourceParams): Promise<void>;
getNewResources(): Promise<NewResourcesTypesDc[]>;
touchResources({ resourceType, resources }: TouchResourcesParams): Promise<void>;
shareResources({ resourceType, resources }: ShareResourcesParams): Promise<CatalogDataDc>;
unshareResources({ resourceType, resources }: UnshareResourcesParams): Promise<CatalogDataDc>;
checkLimits(workspace?: string): Promise<WorkspaceLimitsDc>;
getTaskList({ owners, statuses, offset, limit }: GetTaskListParams): Promise<TaskStatusDataDc[]>;
getTaskInfo(id: string): Promise<TaskInfoDc>;
getTaskProgress(id: string): Promise<TaskProgressDc>;
cancelTask(id: string): Promise<void>;
startCopyTask(parameters?: CopyTaskParametersDc): Promise<TaskStatusDataDc>;
startAggregateTask(parameters?: AggregateTaskParametersDc): Promise<TaskStatusDataDc>;
startBufferTask(parameters?: BufferTaskParametersDc): Promise<TaskStatusDataDc>;
startPrintTask(parameters?: UploadRasterTaskParametersDc): Promise<TaskStatusDataDc>;
startRouteTask(parameters?: AvailabilityAreaTaskDc): Promise<TaskStatusDataDc>;
startUnionTask(parameters?: UnionTaskParametersDc): Promise<TaskStatusDataDc>;
startOverlayTask(parameters?: OverlayTaskParametersDc): Promise<TaskStatusDataDc>;
startFilterCopyTask(parameters?: FilterCopyTaskParametersDc): Promise<TaskStatusDataDc>;
startPipelineTask(parameters?: PipelineTaskParametersDc): Promise<TaskStatusDataDc>;
downloadFile(fileName?: string): Promise<void>;
uploadFile({ file, rewrite }: UploadFileParams): Promise<FileUploadResponse>;
getStyle(id: string): Promise<StyleDc>;
updateStyle({ id, style }: UpdateStyleParams): Promise<StyleCreationResponseDc>;
createStyle(style?: StyleDc): Promise<StyleCreationResponseDc>;
getAllFonts(): Promise<string[]>;
}
export declare type AddFavoritesParams = {
/** Type of the resource. */
resourceType: 'tables' | 'layers' | 'projects';
/** A list of resources to add. */
resources?: string[];
};
export declare type RemoveFavoritesParams = {
/** Type of the resource. */
resourceType: 'tables' | 'layers' | 'projects';
/** A list of resources to add. */
resources?: string[];
};
export declare type GetExcelDataSchemaParams = {
/** Id of the excel file in the temporary static storage. */
fileId?: string;
/** Attribute name row number. */
attributeNameRowNumber?: number;
/** Alias row number. */
aliasRowNumber?: number;
};
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. */
filter?: 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[];
/** Filters projects list by users favorite. */
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. */
filter?: 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[];
/** Filters projects list by users favorite. */
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. */
filter?: 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 AddResourceParams = {
/** Resource type SPCore.Connectors.Connectors.Base.Models.ResourceTypeLink. */
resourceType: 'tables' | 'layers' | 'projects';
/** Resource info. */
catalogData?: CatalogDataDc;
};
export declare type AddResourcesParams = {
/** Name of the user. */
userName?: string;
/** Resource to add. */
resources?: ResourceDc[];
};
export declare type RemoveResourceParams = {
/** Resource type SPCore.Connectors.Connectors.Base.Models.ResourceTypeLink. */
resourceType: 'tables' | 'layers' | 'projects';
/** Resource info. */
catalogData?: CatalogDataDc;
};
export declare type TouchResourcesParams = {
/** */
resourceType: 'tables' | 'layers' | 'projects';
/** */
resources?: string[];
};
export declare type ShareResourcesParams = {
/** Catalog resource type SPCore.Connectors.Connectors.Base.Models.ResourceTypeLink. */
resourceType: 'tables' | 'layers' | 'projects';
/** List of resources of givens type */
resources?: string[];
};
export declare type UnshareResourcesParams = {
/** Catalog resource type SPCore.Connectors.Connectors.Base.Models.ResourceTypeLink. */
resourceType: 'tables' | 'layers' | 'projects';
/** List of resources of givens type */
resources?: string[];
};
export declare type GetTaskListParams = {
/** Filter the tasks by their owner names. */
owners?: string[];
/** Comma separated list of the task statuses. Filters only the tasks with the given statuses. */
statuses?: string[];
/** The first index to return. */
offset?: number;
/** The max number of items to return. */
limit?: number;
};
export declare type UploadFileParams = {
/** Id of the tile in the session static storage. */
file?: FormData;
/** Rewrite flag
If true - rewrite file if exist. If false - return error. */
rewrite?: boolean;
};
export declare type UpdateStyleParams = {
/** Id of the style to replace. */
id: string;
/** The updated style. */
style?: StyleDc;
};

@@ -29,3 +29,214 @@ /*

}
addFavorites({ resourceType, resources }) {
return this.http
.post(`${this.name}/favorites/${resourceType}`, resources)
.then(() => { });
}
removeFavorites({ resourceType, resources }) {
return this.http
.delete(`${this.name}/favorites/${resourceType}`, { resources })
.then(() => { });
}
getDataSchema(fileId) {
return this.http
.get(`${this.name}/import/dataSchema`, { fileId })
.json();
}
getExcelDataSchema({ fileId, attributeNameRowNumber, aliasRowNumber, }) {
return this.http
.get(`${this.name}/import/excelDataSchema`, {
fileId,
attributeNameRowNumber,
aliasRowNumber,
})
.json();
}
getSubscriptionList() {
return this.http
.get(`${this.name}/notifications/subscribes`)
.json();
}
subscribeOperation(tag) {
return this.http
.post(`${this.name}/notifications/subscribes`, null, { tag })
.then(() => { });
}
unsubscribeOperation(tag) {
return this.http
.delete(`${this.name}/notifications/subscribes`, { tag })
.then(() => { });
}
getNotifications() {
return this.http
.get(`${this.name}/notifications/notifications`)
.json();
}
print(printTemplate) {
return this.http.post(`${this.name}/print/print`, printTemplate).blob();
}
getProjects({ filter, offset, limit, orderByFields, isFavorite, }) {
return this.http
.get(`${this.name}/resources/projects`, {
filter,
offset,
limit,
orderByFields,
isFavorite,
})
.json();
}
getTables({ filter, offset, limit, orderByFields, isFavorite, }) {
return this.http
.get(`${this.name}/resources/tables`, {
filter,
offset,
limit,
orderByFields,
isFavorite,
})
.json();
}
getLayers({ filter, types, offset, limit, orderByFields, isFavorite, }) {
return this.http
.get(`${this.name}/resources/layers`, {
filter,
types,
offset,
limit,
orderByFields,
isFavorite,
})
.json();
}
addResource({ resourceType, catalogData }) {
return this.http
.post(`${this.name}/resources/${resourceType}/add`, catalogData)
.then(() => { });
}
addResources({ userName, resources }) {
return this.http
.post(`${this.name}/resources/add`, resources, { userName })
.then(() => { });
}
removeResource({ resourceType, catalogData }) {
return this.http
.post(`${this.name}/resources/${resourceType}/remove`, catalogData)
.then(() => { });
}
getNewResources() {
return this.http
.get(`${this.name}/resources/getNewResources`)
.json();
}
touchResources({ resourceType, resources }) {
return this.http
.post(`${this.name}/resources/${resourceType}/touchResources`, resources)
.then(() => { });
}
shareResources({ resourceType, resources }) {
return this.http
.post(`${this.name}/resources/${resourceType}/shareAll`, resources)
.json();
}
unshareResources({ resourceType, resources }) {
return this.http
.post(`${this.name}/resources/${resourceType}/unshareAll`, resources)
.json();
}
checkLimits(workspace) {
return this.http
.get(`${this.name}/resources/checkLimits`, { workspace })
.json();
}
getTaskList({ owners, statuses, offset, limit }) {
return this.http
.get(`${this.name}/tasks/tasks`, { owners, statuses, offset, limit })
.json();
}
getTaskInfo(id) {
return this.http.get(`${this.name}/tasks/tasks/${id}`).json();
}
getTaskProgress(id) {
return this.http
.get(`${this.name}/tasks/tasks/${id}/progress`)
.json();
}
cancelTask(id) {
return this.http
.post(`${this.name}/tasks/tasks/${id}/cancel`)
.then(() => { });
}
startCopyTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'copy' })
.json();
}
startAggregateTask(parameters) {
return this.http
.post(`${this.name}/tasks/aggregate`, parameters, { type: 'aggregate' })
.json();
}
startBufferTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'buffer' })
.json();
}
startPrintTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'tiling' })
.json();
}
startRouteTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'route' })
.json();
}
startUnionTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'union' })
.json();
}
startOverlayTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'overlay' })
.json();
}
startFilterCopyTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'filterCopy' })
.json();
}
startPipelineTask(parameters) {
return this.http
.post(`${this.name}/tasks/tasks`, parameters, { type: 'pipeline' })
.json();
}
downloadFile(fileName) {
return this.http
.get(`${this.name}/upload/file`, { fileName })
.then(() => { });
}
// @ts-ignore
uploadFile({ file, rewrite }) {
return this.http
.post(`${this.name}/upload/file`, file)
.json();
}
getStyle(id) {
return this.http.get(`${this.name}/styles/${id}`).json();
}
updateStyle({ id, style }) {
return this.http
.post(`${this.name}/styles/${id}`, style)
.json();
}
createStyle(style) {
return this.http
.post(`${this.name}/styles`, style)
.json();
}
getAllFonts() {
return this.http.get(`${this.name}/styles/fonts`).json();
}
}
//# sourceMappingURL=Services.js.map

@@ -19,39 +19,39 @@ import { Service } from './Service';

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[];
/** */
/** Filters tables list by users favorite. */
isFavorite?: boolean;
};
export declare type UpdateTableParams = {
/** */
/** The full name of the table. */
name: string;
/** */
/** Configuration to update. */
data?: UpdateTableDc;
};
export declare type SetPermissionsParams = {
/** */
/** Table name. */
name: string;
/** */
/** New data. */
data?: AccessControlListDc;
};
export declare type AddPermissionsParams = {
/** */
/** Table name. */
name: string;
/** */
/** Acl to add. */
data?: AccessControlListDc;
};
export declare type RemovePermissionsParams = {
/** */
/** Table name. */
name: string;
/** */
/** Exists users role. */
role: string;
};
export declare type SetPreviewParams = {
/** */
/** The name of the resource. */
name: string;

@@ -58,0 +58,0 @@ /** The file to upload. */

@@ -8,3 +8,3 @@ import { TileLayer } from '@evergis/sgis/es/layers/TileLayer';

z,
name: configuration.name,
name: this.name || configuration.name,
});

@@ -11,0 +11,0 @@ super(getUrlMask);

{
"name": "@evergis/api",
"version": "0.1.55",
"version": "0.1.57",
"license": "ISC",

@@ -5,0 +5,0 @@ "author": "everpoint",

Sorry, the diff of this file is too big to display

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc