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.15 to 0.1.16

4

es/__generated__/CompositeFeatureLayer.d.ts
import { ServiceBase } from './ServiceBase';
import { PagedFeaturesListDc, FeaturesListDc, GeometryDc } from './data-contracts';
export declare class CompositeFeatureLayer extends ServiceBase {
getList({ ids, query, offset, limit, layers }: GetListParams): Promise<PagedFeaturesListDc>;
getList({ ids, query, offset, limit, layers, targetSr }: GetListParams): Promise<PagedFeaturesListDc>;
getByGeometry({ geometry, layers, extentSr }: GetByGeometryParams): Promise<FeaturesListDc>;

@@ -20,2 +20,4 @@ getByGeometryPost({ geometry, layers, extentSr }: GetByGeometryPostParams): Promise<FeaturesListDc>;

layers?: number[];
/** Spatial reference wkid of returned features. */
targetSr?: number;
};

@@ -22,0 +24,0 @@ export declare type GetByGeometryParams = {

@@ -9,5 +9,12 @@ /*

export class CompositeFeatureLayer extends ServiceBase {
getList({ ids, query, offset, limit, layers }) {
getList({ ids, query, offset, limit, layers, targetSr }) {
return this.http
.get(`${this.name}/features`, { ids, query, offset, limit, layers })
.get(`${this.name}/features`, {
ids,
query,
offset,
limit,
layers,
targetSr,
})
.json();

@@ -14,0 +21,0 @@ }

@@ -481,91 +481,2 @@ /**

/**
* undefined
*/
export declare type RemoteTileServiceInfo = {
/** */
sourceUrl?: string;
/** */
sourceUrlMask?: string;
/** */
sourceServers?: string[];
/** */
copyrightText?: string;
/** */
tileInfo?: TileInfo;
/** */
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[];
};
};
/**
* 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.

@@ -835,2 +746,111 @@ */

/**
* undefined
*/
export declare type RemoteTileServiceInfo = {
/** */
sourceUrl?: string;
/** */
sourceUrlMask?: string;
/** */
sourceServers?: string[];
/** */
copyrightText?: string;
/** */
tileInfo?: TileInfo;
/** */
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[];
};
};
/**
* 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;
};
/**
* 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;
};
/**
* Base class for client notifications.

@@ -845,7 +865,7 @@ */

/**
* List of the projects in projects manager service.
* The response that contains a paged list of items.
*/
export declare type ProjectsListDc = {
export declare type ListResponseProjectInfoPubDc = {
/** The items of the response. */
items?: ProjectInfoDc[];
items?: ProjectInfoPubDc[];
/** */

@@ -859,5 +879,11 @@ totalCount?: number;

/**
* A project configuration data contract.
* undefined
*/
export declare type ProjectInfoDc = {
export declare type ProjectInfoPubDc = {
/** */
isShared?: boolean;
/** */
isFavorite?: boolean;
/** */
isNew?: boolean;
/** Name of the resource including its namespaces (names of the service managers that contain this service). */

@@ -923,2 +949,4 @@ name: string;

items?: ProjectContentItemDc[];
/** A collection of bookmarks of the map. */
bookmarks?: BookmarkDc[];
};

@@ -943,2 +971,15 @@ /**

/**
* The class describes data contract of bookmark at the map.
*/
export declare type BookmarkDc = {
/** The title of the bookmark. */
title?: string;
/** The position at the map */
position?: PositionDc;
/** Resolution of the map. */
resolution?: number;
/** Map place preview. */
image?: string;
};
/**
* undefined

@@ -1021,2 +1062,38 @@ */

/**
* List of the projects in projects manager service.
*/
export declare type ProjectsListDc = {
/** The items of the response. */
items?: ProjectInfoDc[];
/** */
totalCount?: number;
/** */
offset?: number;
/** */
limit?: number;
};
/**
* A project configuration data contract.
*/
export declare type ProjectInfoDc = {
/** 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.

@@ -1170,30 +1247,15 @@ */

type?: string;
/** The layer service that is to be used as a data source for the task. */
sourceLayer?: LayerTaskDataStorageDc;
/** The uploaded file id that is to be used as a data source for the task. */
sourceFile?: StaticTaskDataStorageDc;
/** The layer service that is to be used as a target for writing the task results. */
targetLayer?: LayerTaskDataStorageDc;
/** The temp file that is to be used as a target for writing the task results. */
targetFile?: StaticTaskDataStorageDc;
/** Storage that is to be used as a data source for the task. */
source?: BaseTaskDataStorageDc;
/** Storage that is to be used as a target for writing the task result. */
target?: BaseTaskDataStorageDc;
};
/**
* The description of the layer service as a server task data storage.
* Base dc of task data storage.
*/
export declare type LayerTaskDataStorageDc = {
/** The name of the layer service. */
serviceName?: string;
/** If set to true, a new service with the given LayerServiceName will be created before the task is executed. */
createNewService?: boolean;
export declare type BaseTaskDataStorageDc = {
/** Type of the data storage. */
type?: string;
};
/**
* Description of the temp file as a task data storage.
*/
export declare type StaticTaskDataStorageDc = {
/** The id of the file in the temporary session static storage. */
fileName?: string;
/** The name of the layer in the file to be used. */
layerName?: string;
};
/**
* Buffer operation calculates the buffer geometries around the input geometries and writes them

@@ -1211,10 +1273,6 @@ into the target storage.

excludeSourcePolygon?: boolean;
/** The layer service that is to be used as a data source for the task. */
sourceLayer?: LayerTaskDataStorageDc;
/** The uploaded file id that is to be used as a data source for the task. */
sourceFile?: StaticTaskDataStorageDc;
/** The layer service that is to be used as a target for writing the task results. */
targetLayer?: LayerTaskDataStorageDc;
/** The temp file that is to be used as a target for writing the task results. */
targetFile?: StaticTaskDataStorageDc;
/** Storage that is to be used as a data source for the task. */
source?: BaseTaskDataStorageDc;
/** Storage that is to be used as a target for writing the task result. */
target?: BaseTaskDataStorageDc;
};

@@ -1269,10 +1327,6 @@ /**

providerType?: string;
/** The layer service that is to be used as a data source for the task. */
sourceLayer?: LayerTaskDataStorageDc;
/** The uploaded file id that is to be used as a data source for the task. */
sourceFile?: StaticTaskDataStorageDc;
/** The layer service that is to be used as a target for writing the task results. */
targetLayer?: LayerTaskDataStorageDc;
/** The temp file that is to be used as a target for writing the task results. */
targetFile?: StaticTaskDataStorageDc;
/** Storage that is to be used as a data source for the task. */
source?: BaseTaskDataStorageDc;
/** Storage that is to be used as a target for writing the task result. */
target?: BaseTaskDataStorageDc;
};

@@ -1285,10 +1339,6 @@ /**

type?: string;
/** The layer service that is to be used as a data source for the task. */
sourceLayer?: LayerTaskDataStorageDc;
/** The uploaded file id that is to be used as a data source for the task. */
sourceFile?: StaticTaskDataStorageDc;
/** The layer service that is to be used as a target for writing the task results. */
targetLayer?: LayerTaskDataStorageDc;
/** The temp file that is to be used as a target for writing the task results. */
targetFile?: StaticTaskDataStorageDc;
/** Storage that is to be used as a data source for the task. */
source?: BaseTaskDataStorageDc;
/** Storage that is to be used as a target for writing the task result. */
target?: BaseTaskDataStorageDc;
};

@@ -1305,12 +1355,19 @@ /**

toolLayer?: LayerTaskDataStorageDc;
/** The layer service that is to be used as a data source for the task. */
sourceLayer?: LayerTaskDataStorageDc;
/** The uploaded file id that is to be used as a data source for the task. */
sourceFile?: StaticTaskDataStorageDc;
/** The layer service that is to be used as a target for writing the task results. */
targetLayer?: LayerTaskDataStorageDc;
/** The temp file that is to be used as a target for writing the task results. */
targetFile?: StaticTaskDataStorageDc;
/** Storage that is to be used as a data source for the task. */
source?: BaseTaskDataStorageDc;
/** Storage that is to be used as a target for writing the task result. */
target?: BaseTaskDataStorageDc;
};
/**
* The description of the layer service as a server task data storage.
*/
export declare type LayerTaskDataStorageDc = {
/** The name of the layer service. */
serviceName?: string;
/** If set to true, a new service with the given LayerServiceName will be created before the task is executed. */
createNewService?: boolean;
/** */
type?: string;
};
/**
* Server task that copies the objects from the source storage that satisfy the filter conditions to the target layer.

@@ -1326,10 +1383,6 @@ */

geometryFilterStorage?: LayerTaskDataStorageDc;
/** The layer service that is to be used as a data source for the task. */
sourceLayer?: LayerTaskDataStorageDc;
/** The uploaded file id that is to be used as a data source for the task. */
sourceFile?: StaticTaskDataStorageDc;
/** The layer service that is to be used as a target for writing the task results. */
targetLayer?: LayerTaskDataStorageDc;
/** The temp file that is to be used as a target for writing the task results. */
targetFile?: StaticTaskDataStorageDc;
/** Storage that is to be used as a data source for the task. */
source?: BaseTaskDataStorageDc;
/** Storage that is to be used as a target for writing the task result. */
target?: BaseTaskDataStorageDc;
};

@@ -1346,22 +1399,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 of a postgres service manager service.

@@ -1368,0 +1401,0 @@ */

import { ServiceBase } from './ServiceBase';
import { PagedFeaturesListDc, LayerUpdateInfoDc, FeatureDc, FeaturesListDc, GeometryDc, EnvelopeDc } from './data-contracts';
export declare class FeatureLayer extends ServiceBase {
getList({ ids, query, offset, limit }: GetListParams): Promise<PagedFeaturesListDc>;
getList({ ids, query, offset, limit, targetSr }: GetListParams): Promise<PagedFeaturesListDc>;
createFeatures(features?: FeatureDc[]): Promise<LayerUpdateInfoDc>;
deleteFeatures(ids?: string[]): Promise<LayerUpdateInfoDc>;
updateFeature(features?: FeatureDc[]): Promise<LayerUpdateInfoDc>;
getById(id: string): Promise<FeatureDc>;
getById({ id, targetSr }: GetByIdParams): Promise<FeatureDc>;
deleteFeature(id: string): Promise<LayerUpdateInfoDc>;

@@ -25,3 +25,11 @@ getLayerImage({ extent, size, extentSr, condition, styleId, }: GetLayerImageParams): string;

limit?: number;
/** Spatial reference wkid of returned features. */
targetSr?: number;
};
export declare type GetByIdParams = {
/** Feature id. */
id: string;
/** Spatial reference wkid of returned features. */
targetSr?: number;
};
export declare type GetLayerImageParams = {

@@ -28,0 +36,0 @@ /** Extent to render. */

@@ -9,5 +9,5 @@ /*

export class FeatureLayer extends ServiceBase {
getList({ ids, query, offset, limit }) {
getList({ ids, query, offset, limit, targetSr }) {
return this.http
.get(`${this.name}/features`, { ids, query, offset, limit })
.get(`${this.name}/features`, { ids, query, offset, limit, targetSr })
.json();

@@ -30,4 +30,6 @@ }

}
getById(id) {
return this.http.get(`${this.name}/features/${id}`).json();
getById({ id, targetSr }) {
return this.http
.get(`${this.name}/features/${id}`, { targetSr })
.json();
}

@@ -34,0 +36,0 @@ deleteFeature(id) {

import { Service } from './Service';
import { ServiceListDc, ServiceInfoDc, FileUploadResponse, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, AccessControlListDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc } from './data-contracts';
import { ServiceListDc, ServiceInfoDc, FileUploadResponse, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, RemoteTileServiceInfo, AccessControlListDc, ResourceDependencyDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc } from './data-contracts';
export declare class Layers extends Service {

@@ -10,18 +10,19 @@ getLayersList({ filter, types, offset, limit, orderByFields, isFavorite, }: GetLayersListParams): Promise<ServiceListDc>;

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>;
updateRemoteTileService({ name, configuration, }: UpdateRemoteTileServiceParams): Promise<RemoteTileServiceInfo>;
updateLocalTileService({ name, configuration, }: UpdateLocalTileServiceParams): Promise<TileServiceInfoDc>;
updatePostgresLayerService({ name, configuration, }: UpdatePostgresLayerServiceParams): Promise<FeatureLayerServiceInfoDc>;
updateCompositeService({ name, configuration, }: UpdateCompositeServiceParams): Promise<CompositeServiceInfoDc>;
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>;
addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>;
removePermissions({ name, role }: RemovePermissionsParams): Promise<AccessControlListDc>;
getFeatures({ name, query, offset, limit }: GetFeaturesParams): Promise<void>;
getLayerDepends(name: string): Promise<ResourceDependencyDc>;
getFeatures({ name, query, offset, limit, wkid }: GetFeaturesParams): Promise<void>;
createFeatures({ name, features }: CreateFeaturesParams): Promise<LayerUpdateInfoDc>;
deleteFeature({ id, name }: DeleteFeatureParams): Promise<LayerUpdateInfoDc>;
updateFeature({ name, features }: UpdateFeatureParams): Promise<LayerUpdateInfoDc>;
getById({ name, id }: GetByIdParams): Promise<FeatureDc>;
getById({ name, id, wkid }: GetByIdParams): Promise<FeatureDc>;
getLayerImage({ name, extent, size, extentSr, condition, styleId, }: GetLayerImageParams): string;

@@ -56,2 +57,26 @@ getLayerExtent({ name, filterCondition, sr }: GetLayerExtentParams): Promise<EnvelopeDc>;

};
export declare type UpdateRemoteTileServiceParams = {
/** */
name: string;
/** */
configuration?: RemoteTileServiceConfigurationDc;
};
export declare type UpdateLocalTileServiceParams = {
/** */
name: string;
/** */
configuration?: RemoteTileServiceConfigurationDc;
};
export declare type UpdatePostgresLayerServiceParams = {
/** */
name: string;
/** */
configuration?: PostgresLayerServiceConfigurationDc;
};
export declare type UpdateCompositeServiceParams = {
/** */
name: string;
/** */
configuration?: CompositeServiceConfigurationDc;
};
export declare type SetPermissionsParams = {

@@ -84,2 +109,4 @@ /** */

limit?: number;
/** */
wkid?: number;
};

@@ -109,2 +136,4 @@ export declare type CreateFeaturesParams = {

id: string;
/** */
wkid?: number;
};

@@ -111,0 +140,0 @@ export declare type GetLayerImageParams = {

@@ -40,40 +40,40 @@ /*

}
updateRemoteTileService(configuration) {
publishLocalTileService(configuration) {
return this.http
.patch(`layers`, configuration, { type: 'RemoteTileService' })
.post(`layers`, configuration, { type: 'LocalTileService' })
.json();
}
publishLocalTileService(configuration) {
publishPostgresLayerService(configuration) {
return this.http
.post(`layers`, configuration, { type: 'LocalTileService' })
.post(`layers`, configuration, { type: 'PostgresLayerService' })
.json();
}
updateLocalTileService(configuration) {
publishStyledLayerService(configuration) {
return this.http
.patch(`layers`, configuration, { type: 'LocalTileService' })
.post(`layers`, configuration, { type: 'StyledFeatureLayer' })
.json();
}
publishPostgresLayerService(configuration) {
publishCompositeService(configuration) {
return this.http
.post(`layers`, configuration, { type: 'PostgresLayerService' })
.post(`layers`, configuration, { type: 'CompositeService' })
.json();
}
updatePostgresLayerService(configuration) {
updateRemoteTileService({ name, configuration, }) {
return this.http
.patch(`layers`, configuration, { type: 'PostgresLayerService' })
.patch(`layers/${name}`, configuration, { type: 'RemoteTileService' })
.json();
}
publishStyledLayerService(configuration) {
updateLocalTileService({ name, configuration, }) {
return this.http
.post(`layers`, configuration, { type: 'StyledFeatureLayer' })
.patch(`layers/${name}`, configuration, { type: 'LocalTileService' })
.json();
}
publishCompositeService(configuration) {
updatePostgresLayerService({ name, configuration, }) {
return this.http
.post(`layers`, configuration, { type: 'CompositeService' })
.patch(`layers/${name}`, configuration, { type: 'PostgresLayerService' })
.json();
}
updateCompositeService(configuration) {
updateCompositeService({ name, configuration, }) {
return this.http
.patch(`layers`, configuration, { type: 'CompositeService' })
.patch(`layers/${name}`, configuration, { type: 'CompositeService' })
.json();

@@ -96,5 +96,8 @@ }

}
getFeatures({ name, query, offset, limit }) {
getLayerDepends(name) {
return this.http.get(`layers/${name}/depends`).json();
}
getFeatures({ name, query, offset, limit, wkid }) {
return this.http
.get(`layers/${name}/features`, { query, offset, limit })
.get(`layers/${name}/features`, { query, offset, limit, wkid })
.then(() => { });

@@ -117,4 +120,6 @@ }

}
getById({ name, id }) {
return this.http.get(`layers/${name}/features/${id}`).json();
getById({ name, id, wkid }) {
return this.http
.get(`layers/${name}/features/${id}`, { wkid })
.json();
}

@@ -121,0 +126,0 @@ getLayerImage({ name, extent, size, extentSr, condition, styleId, }) {

import { Service } from './Service';
import { ProjectsListDc, ExtendedProjectInfoDc, SharedProjectInfoDc, SharedProjectConfigurationDc, AccessControlListDc, FileUploadResponse } from './data-contracts';
import { ListResponseProjectInfoPubDc, ExtendedProjectInfoDc, SharedProjectInfoDc, SharedProjectConfigurationDc, AccessControlListDc, FileUploadResponse, ResourceDependencyDc } from './data-contracts';
export declare class Projects extends Service {
getProjectsList({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsListParams): Promise<ProjectsListDc>;
getProjectsList({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsListParams): Promise<ListResponseProjectInfoPubDc>;
createProject(info?: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>;
updateProject(info?: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>;
createShareProject({ projectName, configuration }: CreateShareProjectParams): Promise<SharedProjectInfoDc>;
removeShareProject(projectName: string): Promise<void>;
createShareProject({ name, configuration }: CreateShareProjectParams): Promise<SharedProjectInfoDc>;
removeShareProject(name: string): Promise<void>;
getProjectInfo(name: string): Promise<ExtendedProjectInfoDc>;
dropProject(name: string): Promise<void>;
updateProject({ name, info }: UpdateProjectParams): Promise<ExtendedProjectInfoDc>;
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>;

@@ -16,2 +16,3 @@ addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>;

setPreview({ name, file }: SetPreviewParams): Promise<FileUploadResponse>;
getProjectDepends(name: string): Promise<ResourceDependencyDc>;
}

@@ -32,6 +33,12 @@ export declare type GetProjectsListParams = {

/** */
projectName: string;
name: string;
/** */
configuration?: SharedProjectConfigurationDc;
};
export declare type UpdateProjectParams = {
/** */
name: string;
/** */
info?: ExtendedProjectInfoDc;
};
export declare type SetPermissionsParams = {

@@ -38,0 +45,0 @@ /** */

@@ -17,14 +17,9 @@ /*

}
updateProject(info) {
return this.http.patch(`projects`, info).json();
}
createShareProject({ projectName, configuration }) {
createShareProject({ name, configuration }) {
return this.http
.post(`projects/projects/${projectName}/share`, configuration)
.post(`projects/${name}/share`, configuration)
.json();
}
removeShareProject(projectName) {
return this.http
.delete(`projects/projects/${projectName}/share`)
.then(() => { });
removeShareProject(name) {
return this.http.delete(`projects/${name}/share`).then(() => { });
}

@@ -37,2 +32,7 @@ getProjectInfo(name) {

}
updateProject({ name, info }) {
return this.http
.patch(`projects/${name}`, info)
.json();
}
setPermissions({ name, Acl }) {

@@ -61,3 +61,8 @@ return this.http

}
getProjectDepends(name) {
return this.http
.get(`projects/${name}/depends`)
.json();
}
}
//# sourceMappingURL=Projects.js.map
import { ServiceBase } from './ServiceBase';
import { ProjectsListDc, TableListDc, ServiceListDc, CatalogDataDc, ExtendedResourceInfoPubDc, NewResourcesTypesDc } from './data-contracts';
import { ListResponseProjectInfoPubDc, TableListDc, ServiceListDc, CatalogDataDc, ExtendedResourceInfoPubDc, NewResourcesTypesDc } from './data-contracts';
export declare class ResourceCatalog extends ServiceBase {
getProjects({ query, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ProjectsListDc>;
getProjects({ query, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ListResponseProjectInfoPubDc>;
getTables({ query, offset, limit, orderByFields, isFavorite, }: GetTablesParams): Promise<TableListDc>;

@@ -6,0 +6,0 @@ getLayers({ query, types, offset, limit, orderByFields, isFavorite, }: GetLayersParams): Promise<ServiceListDc>;

@@ -23,3 +23,3 @@ /*

cancelTask(id) {
return this.http.delete(`${this.name}/tasks/${id}/cancel`).then(() => { });
return this.http.post(`${this.name}/tasks/${id}/cancel`).then(() => { });
}

@@ -26,0 +26,0 @@ startCopyTask(parameters) {

@@ -6,5 +6,5 @@ import { Service } from './Service';

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>;
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>;

@@ -28,2 +28,8 @@ addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>;

};
export declare type UpdateTableParams = {
/** */
name: string;
/** */
data?: UpdateTableDc;
};
export declare type SetPermissionsParams = {

@@ -30,0 +36,0 @@ /** */

@@ -17,5 +17,2 @@ /*

}
updateTable(data) {
return this.http.patch(`tables`, data).json();
}
getTableInfo(name) {

@@ -27,2 +24,5 @@ return this.http.get(`tables/${name}`).json();

}
updateTable({ name, data }) {
return this.http.patch(`tables/${name}`, data).json();
}
setPermissions({ name, Acl }) {

@@ -29,0 +29,0 @@ return this.http

@@ -8,3 +8,3 @@ import { Projects as ProjectsService, GetProjectsListParams } from '../__generated__/Projects';

findOne(name: string): Promise<ExtendedProjectInfoDc>;
findAll(params: GetProjectsListParams): Promise<import("../__generated__/data-contracts").ProjectsListDc>;
findAll(params: GetProjectsListParams): Promise<import("../__generated__/data-contracts").ListResponseProjectInfoPubDc>;
create(resource: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>;

@@ -11,0 +11,0 @@ update(resource: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>;

{
"name": "@evergis/api",
"version": "0.1.15",
"version": "0.1.16",
"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

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