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.19 to 0.1.20

es/services/Geocode.d.ts

61

es/__generated__/data-contracts/index.d.ts

@@ -413,9 +413,2 @@ /**

/**
* The result of uploading a file.
*/
export declare type FileUploadResponse = {
/** Id of the tile in the session static storage. */
fileId?: string;
};
/**
* Configuration for the remote tile service.

@@ -947,9 +940,34 @@ */

/**
* The result of uploading a file.
*/
export declare type FileUploadResponse = {
/** Id of the tile in the session static storage. */
fileId?: string;
};
/**
* The {ResourceDependenciesDc} describes resource dependencies.
*/
export declare type ResourceDependenciesDc = {
/** Resource name. */
name?: string;
/** A collection of resource dependencies. */
dependencies?: DependentResourceDc[];
};
/**
* Resource dependence data contract.
*/
export declare type DependentResourceDc = {
/** Name of resource. */
name?: string;
/** Type of resource. */
type?: string;
};
/**
* Resource dependency description.
*/
export declare type ResourceDependencyDc = {
export declare type ResourceReferencesDc = {
/** Name of the target resource. */
name?: string;
/** Array of dependent resources. */
dependentResources?: DependentResourceDc[];
resourceReference?: RefersResourceDc[];
};

@@ -959,9 +977,9 @@ /**

*/
export declare type DependentResourceDc = {
export declare type RefersResourceDc = {
/** Name of the target resource. */
name?: string;
/** Name of dependent resource. */
dependentTo?: string;
/** Type of dependent resource. */
resourceType?: string;
/** Name of refer resource. */
referTo?: string;
/** Type of refer resource. */
referType?: string;
};

@@ -1450,17 +1468,2 @@ /**

/**
* Configuration for the remote tile service.
*/
export declare type GeocodeServiceConfigurationDc = {
/** Geocode provider name. */
providerName: string;
/** 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;
};
/**
* Configuration of a postgres service manager service.

@@ -1467,0 +1470,0 @@ */

import { Service } from './Service';
import { ServiceListDc, ServiceInfoDc, FileUploadResponse, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, RemoteTileServiceInfo, AccessControlListDc, ResourceDependencyDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc } from './data-contracts';
import { ServiceListDc, ServiceInfoDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, RemoteTileServiceInfo, SharedProjectInfoDc, SharedProjectConfigurationDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc, FileUploadResponse, ResourceDependenciesDc, ResourceReferencesDc, AccessControlListDc } from './data-contracts';
export declare class Layers extends Service {
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>;
deleteResource(name: string): Promise<void>;
publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfoDc>;

@@ -17,7 +15,4 @@ publishLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<TileServiceInfoDc>;

updatePostgresLayerService({ name, configuration, }: UpdatePostgresLayerServiceParams): Promise<FeatureLayerServiceInfoDc>;
updateSharedProjectService({ name, configuration, }: UpdateSharedProjectServiceParams): Promise<SharedProjectInfoDc>;
updateCompositeService({ name, configuration, }: UpdateCompositeServiceParams): Promise<CompositeServiceInfoDc>;
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>;
addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>;
removePermissions({ name, role }: RemovePermissionsParams): Promise<AccessControlListDc>;
getLayerDepends(name: string): Promise<ResourceDependencyDc>;
getFeatures({ name, query, offset, limit, wkid }: GetFeaturesParams): Promise<void>;

@@ -36,2 +31,9 @@ createFeatures({ name, features }: CreateFeaturesParams): Promise<LayerUpdateInfoDc>;

getByGeometryGet({ name, imageRectangle, envelope, clickPoint, extentSr, targetSr, useFilledSymbols, }: GetByGeometryGetParams): Promise<FeaturesListDc>;
getPreview(name: string): string;
setPreview({ name, file }: SetPreviewParams): Promise<FileUploadResponse>;
getResourceDependencies(name: string): Promise<ResourceDependenciesDc>;
getResourceReferences(name: string): Promise<ResourceReferencesDc>;
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>;
addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>;
removePermissions({ name, role }: RemovePermissionsParams): Promise<AccessControlListDc>;
}

@@ -52,8 +54,2 @@ export declare type GetLayersListParams = {

};
export declare type SetPreviewParams = {
/** */
name: string;
/** The file to upload. */
file: FormData;
};
export declare type UpdateRemoteTileServiceParams = {

@@ -77,26 +73,14 @@ /** */

};
export declare type UpdateCompositeServiceParams = {
export declare type UpdateSharedProjectServiceParams = {
/** */
name: string;
/** */
configuration?: CompositeServiceConfigurationDc;
configuration?: SharedProjectConfigurationDc;
};
export declare type SetPermissionsParams = {
export declare type UpdateCompositeServiceParams = {
/** */
name: string;
/** All available permissions list. */
Acl: any[];
};
export declare type AddPermissionsParams = {
/** */
name: string;
/** All available permissions list. */
Acl: any[];
configuration?: CompositeServiceConfigurationDc;
};
export declare type RemovePermissionsParams = {
/** */
name: string;
/** */
role: string;
};
export declare type GetFeaturesParams = {

@@ -224,1 +208,25 @@ /** */

};
export declare type SetPreviewParams = {
/** The name of the resource. */
name: string;
/** The file to upload. */
file: FormData;
};
export declare type SetPermissionsParams = {
/** Layer full name. */
name: string;
/** All available permissions list. */
Acl: any[];
};
export declare type AddPermissionsParams = {
/** Layer full name. */
name: string;
/** All available permissions list. */
Acl: any[];
};
export declare type RemovePermissionsParams = {
/** Layer full name. */
name: string;
/** Exists users role. */
role: string;
};

@@ -24,13 +24,5 @@ /*

}
deleteLayer(name) {
deleteResource(name) {
return this.http.delete(`layers/${name}`).then(() => { });
}
getPreview(name) {
return this.http.createUrl(`layers/${name}/preview`);
}
setPreview({ name, file }) {
return this.http
.post(`layers/${name}/preview`, file)
.json();
}
publishRemoteTileService(configuration) {

@@ -76,25 +68,12 @@ return this.http

}
updateCompositeService({ name, configuration, }) {
updateSharedProjectService({ name, configuration, }) {
return this.http
.patch(`layers/${name}`, configuration, { type: 'CompositeService' })
.patch(`layers/${name}`, configuration, { type: 'SharedProjectService' })
.json();
}
setPermissions({ name, Acl }) {
updateCompositeService({ name, configuration, }) {
return this.http
.put(`layers/${name}/permissions`, null, { Acl })
.patch(`layers/${name}`, configuration, { type: 'CompositeService' })
.json();
}
addPermissions({ name, Acl }) {
return this.http
.post(`layers/${name}/permissions`, null, { Acl })
.json();
}
removePermissions({ name, role }) {
return this.http
.delete(`layers/${name}/permissions/${role}`)
.json();
}
getLayerDepends(name) {
return this.http.get(`layers/${name}/depends`).json();
}
getFeatures({ name, query, offset, limit, wkid }) {

@@ -181,3 +160,36 @@ return this.http

}
getPreview(name) {
return this.http.createUrl(`layers/${name}/preview`);
}
setPreview({ name, file }) {
return this.http
.post(`layers/${name}/preview`, file)
.json();
}
getResourceDependencies(name) {
return this.http
.get(`layers/${name}/dependencies`)
.json();
}
getResourceReferences(name) {
return this.http
.get(`layers/${name}/references`)
.json();
}
setPermissions({ name, Acl }) {
return this.http
.put(`layers/${name}/permissions`, null, { Acl })
.json();
}
addPermissions({ name, Acl }) {
return this.http
.post(`layers/${name}/permissions`, null, { Acl })
.json();
}
removePermissions({ name, role }) {
return this.http
.delete(`layers/${name}/permissions/${role}`)
.json();
}
}
//# sourceMappingURL=Layers.js.map
import { Service } from './Service';
import { ListResponseProjectInfoPubDc, ExtendedProjectInfoDc, SharedProjectInfoDc, SharedProjectConfigurationDc, AccessControlListDc, FileUploadResponse, ResourceDependencyDc } from './data-contracts';
import { ListResponseProjectInfoPubDc, ExtendedProjectInfoDc, SharedProjectInfoDc, SharedProjectConfigurationDc, AccessControlListDc, FileUploadResponse, ResourceDependenciesDc, ResourceReferencesDc } from './data-contracts';
export declare class Projects extends Service {

@@ -9,3 +9,3 @@ getProjectsList({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsListParams): Promise<ListResponseProjectInfoPubDc>;

getProjectInfo(name: string): Promise<ExtendedProjectInfoDc>;
dropProject(name: string): Promise<void>;
deleteResource(name: string): Promise<void>;
updateProject({ name, info }: UpdateProjectParams): Promise<ExtendedProjectInfoDc>;

@@ -17,3 +17,4 @@ setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>;

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

@@ -20,0 +21,0 @@ export declare type GetProjectsListParams = {

@@ -28,3 +28,3 @@ /*

}
dropProject(name) {
deleteResource(name) {
return this.http.delete(`projects/${name}`).then(() => { });

@@ -60,8 +60,13 @@ }

}
getProjectDepends(name) {
getResourceDependencies(name) {
return this.http
.get(`projects/${name}/depends`)
.get(`projects/${name}/dependencies`)
.json();
}
getResourceReferences(name) {
return this.http
.get(`projects/${name}/references`)
.json();
}
}
//# sourceMappingURL=Projects.js.map
import { ServiceBase } from './ServiceBase';
import { ServiceListDc, ResourceDependencyDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, TileServiceInfoDc, ServiceInfoDc, GeocodeServiceConfigurationDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, WorkspaceConfigurationDc } from './data-contracts';
import { ServiceListDc, ResourceReferencesDc, 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>;
getServiceDepends(name: string): Promise<ResourceReferencesDc>;
publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfoDc>;

@@ -10,3 +10,2 @@ updateRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfo>;

updateLocalTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<TileServiceInfoDc>;
publishGeocodeService(configuration?: GeocodeServiceConfigurationDc): Promise<ServiceInfoDc>;
publishPostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>;

@@ -13,0 +12,0 @@ updatePostgresLayerService(configuration?: PostgresLayerServiceConfigurationDc): Promise<FeatureLayerServiceInfoDc>;

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

}
publishGeocodeService(configuration) {
return this.http
.post(`${this.name}/services`, configuration, { type: 'GeocodeService' })
.json();
}
publishPostgresLayerService(configuration) {

@@ -60,0 +55,0 @@ return this.http

import { Service } from './Service';
import { TableListDc, DetailedTableInfoDc, UpdateTableDc, AccessControlListDc, FileUploadResponse } from './data-contracts';
import { TableListDc, DetailedTableInfoDc, UpdateTableDc, ResourceReferencesDc, ResourceDependenciesDc, AccessControlListDc, FileUploadResponse } from './data-contracts';
export declare class Tables extends Service {

@@ -7,4 +7,6 @@ getTableList({ filter, offset, limit, orderByFields, isFavorite, }: GetTableListParams): Promise<TableListDc>;

getTableInfo(name: string): Promise<DetailedTableInfoDc>;
dropTable(name: string): Promise<void>;
deleteResource(name: string): Promise<void>;
updateTable({ name, data }: UpdateTableParams): Promise<DetailedTableInfoDc>;
getResourceReferences(name: string): Promise<ResourceReferencesDc>;
getResourceDependencies(name: string): Promise<ResourceDependenciesDc>;
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>;

@@ -11,0 +13,0 @@ addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>;

@@ -20,3 +20,3 @@ /*

}
dropTable(name) {
deleteResource(name) {
return this.http.delete(`tables/${name}`).then(() => { });

@@ -27,2 +27,12 @@ }

}
getResourceReferences(name) {
return this.http
.get(`tables/${name}/references`)
.json();
}
getResourceDependencies(name) {
return this.http
.get(`tables/${name}/dependencies`)
.json();
}
setPermissions({ name, Acl }) {

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

import { HttpClient } from './__generated__/HttpClient';
import { ApiConfig } from './defaultApiConfig';
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects } from './services';
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects, Resources, Styles, Geocode } from './services';
import { AuthorizationData } from './__generated__/data-contracts';
import { Resources } from './services/Resources';
import { Styles } from './services/Styles';
export declare type ApiParams = {

@@ -26,2 +24,3 @@ url: string;

readonly styles: Styles;
readonly geocode: Geocode;
constructor({ url, wsUrl, config }: ApiParams);

@@ -28,0 +27,0 @@ init(params: AuthorizationData): Promise<void>;

import { HttpClient } from './__generated__/HttpClient';
import { defaultApiConfig } from './defaultApiConfig';
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects, } from './services';
import { Resources } from './services/Resources';
import { Styles } from './services/Styles';
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects, Resources, Styles, Geocode, } from './services';
export class Api {

@@ -21,2 +19,3 @@ constructor({ url, wsUrl, config = defaultApiConfig }) {

this.import = new Import(config.ImportService, this.http);
this.geocode = new Geocode(config.GeocodeService, this.http);
}

@@ -23,0 +22,0 @@ async init(params) {

@@ -6,2 +6,3 @@ import { ServiceInfoDc } from './__generated__/data-contracts';

ImportService: ServiceInfoDc;
GeocodeService: ServiceInfoDc;
NotificationService: ServiceInfoDc;

@@ -8,0 +9,0 @@ PostgresProjectService: ServiceInfoDc;

@@ -5,2 +5,3 @@ export const defaultApiConfig = {

ImportService: { name: 'services/import', type: 'ImportService' },
GeocodeService: { name: 'services/geocode2gis', type: 'GeocodeService' },
NotificationService: {

@@ -7,0 +8,0 @@ name: 'services/notifications',

@@ -9,1 +9,4 @@ export { Security } from './Security';

export { Projects } from './Projects';
export { Resources } from './Resources';
export { Styles } from './Styles';
export { Geocode } from './Geocode';

@@ -9,2 +9,5 @@ export { Security } from './Security';

export { Projects } from './Projects';
export { Resources } from './Resources';
export { Styles } from './Styles';
export { Geocode } from './Geocode';
//# sourceMappingURL=index.js.map

@@ -45,3 +45,3 @@ import { Layers as LayersService, } from '../__generated__/Layers';

remove(name) {
return this.deleteLayer(name);
return this.deleteResource(name);
}

@@ -48,0 +48,0 @@ }

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

remove(name) {
return this.dropProject(name);
return this.deleteResource(name);
}

@@ -27,0 +27,0 @@ }

@@ -24,5 +24,5 @@ import { Tables as TablesService, } from '../__generated__/Tables';

remove(name) {
return this.dropTable(name);
return this.deleteResource(name);
}
}
//# sourceMappingURL=Tables.js.map
import { ServiceManager as ServicesManagerBase } from './__generated__/ServiceManager';
import { FileUpload, Import, Scheduler, Security, Notification } from './services';
import { FileUpload, Import, Scheduler, Security, Notification, Geocode } from './services';
export declare class ServicesManager extends ServicesManagerBase {

@@ -16,2 +16,3 @@ private services;

ImportService: typeof Import;
GeocodeService: typeof Geocode;
SchedulerService: typeof Scheduler;

@@ -18,0 +19,0 @@ ServiceManagerService: typeof ServicesManager;

import { ServiceManager as ServicesManagerBase } from './__generated__/ServiceManager';
import { FileUpload, Import, Scheduler, Security, Notification, } from './services';
import { FileUpload, Import, Scheduler, Security, Notification, Geocode, } from './services';
export class ServicesManager extends ServicesManagerBase {

@@ -41,2 +41,3 @@ constructor() {

ImportService: Import,
GeocodeService: Geocode,
SchedulerService: Scheduler,

@@ -43,0 +44,0 @@ ServiceManagerService: ServicesManager,

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

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