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

@evergis/api

Package Overview
Dependencies
Maintainers
4
Versions
329
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.4 to 0.1.5

52

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

@@ -197,2 +197,4 @@ /**

name?: string;
/** Default value, if column is not nullable.. */
defaultValue?: string;
/** Column value type. */

@@ -379,2 +381,9 @@ type?: 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint';

/**
* 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.

@@ -497,2 +506,4 @@ */

alias?: string;
/** String attribute subtype SPCore.Kernel.Features.Attributes.AttributeType.String. */
subType?: 'image';
/** If set to false, editing of the attribute value will be prohibited. */

@@ -978,2 +989,9 @@ isEditable?: boolean;

export declare type ServiceManagerConfiguration = {
/** If set, the service manager will be able to create only the services of the given types. */
allowedServiceTypes?: string[];
/** If set and positive, the service manager will throw an exception during the creation of a child service
if the resulting number of the child service after the creation is greater than the given limit. */
maxServiceCount?: number;
/** If set, all layers and tables of this workspace will be limited to the given number of features. */
maxFeaturesInOneTable?: number;
/** Configuration for the data service. */

@@ -994,2 +1012,5 @@ dataServiceConfiguration?: DataServiceConfiguration;

export declare type DataServiceConfiguration = {
/** If set, the number of the tables in the data service will be limited by this number. If exceeded, an error will be
returned when trying to create a new table. */
maxTables?: number;
/** Name of the service. */

@@ -1006,2 +1027,5 @@ name?: string;

export declare type ProjectServiceConfiguration = {
/** Sets the maximum number of projects this service can contain. If exceeded, new project creation attempt
will case an error. */
maxProjects?: number;
/** Name of the service. */

@@ -1015,7 +1039,27 @@ name?: string;

/**
* The result of uploading a file.
* Table description with columns what must be added and deleted.
*/
export declare type FileUploadResponse = {
/** Id of the tile in the session static storage. */
fileId?: string;
export declare type UpdateTableDc = {
/** Description of table columns what must be added. */
columnsAdd?: ColumnDescriptionDc[];
/** Table columns what must be deleted. */
columnsDelete?: string[];
/** Resource name. */
name: string;
/** Name of the resource including its namespaces (names of the service managers that contain this service). */
fullName?: string;
/** Resource alias. */
alias?: string;
/** Resource owner. */
owner?: string;
/** Resource description. */
description?: string;
/** Resource preview. */
preview?: string;
/** The date when resource was created. */
createdDate?: string;
/** The date when resource was last modified. */
changedDate?: string;
/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
};

@@ -1022,0 +1066,0 @@ /**

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

deleteFeature(id: string): Promise<LayerUpdateInfoDc>;
getLayerImage({ extent, size, extentSr, condition }: GetLayerImageParams): string;
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>;
getLayerExtent({ filterCondition, sr }: GetLayerExtentParams): Promise<EnvelopeDc>;

@@ -35,3 +36,15 @@ }

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 GetByGeometryGetParams = {
/** Screen image bbox rectangle. */
imageRectangle?: number[];
/** Envelope geometry for screen rectangle. */
envelope?: number[];
/** Click position on screen rectangle. */
clickPoint?: number[];
/** If true, include transparent pixels too. */
useFilledSymbols?: boolean;
};
export declare type GetLayerExtentParams = {

@@ -38,0 +51,0 @@ /** If set, only the features that satisfy the condition will be considered when calculating the extent. */

@@ -37,3 +37,3 @@ /*

}
getLayerImage({ extent, size, extentSr, condition }) {
getLayerImage({ extent, size, extentSr, condition, styleId, }) {
return this.http.createUrl(`${this.name}/export`, {

@@ -44,2 +44,3 @@ extent,

condition,
styleId,
});

@@ -57,2 +58,12 @@ }

}
getByGeometryGet({ imageRectangle, envelope, clickPoint, useFilledSymbols, }) {
return this.http
.get(`${this.name}/features/getByGeometryByClick`, {
imageRectangle,
envelope,
clickPoint,
useFilledSymbols,
})
.json();
}
getLayerExtent({ filterCondition, sr }) {

@@ -59,0 +70,0 @@ return this.http

2

es/__generated__/HttpClient.d.ts
import { ResponsePromise } from 'ky';
export { HTTPError, TimeoutError } from 'ky';
declare type SearchParams = {
[key: string]: number | string | number[] | string[] | null | undefined;
[key: string]: number | string | number[] | string[] | boolean | null | undefined;
};

@@ -6,0 +6,0 @@ declare type AllowedBody = FormData | string | object | null;

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

getPermissions(): Promise<AccessControlListDc>;
setPermissions(Acl?: any[]): Promise<AccessControlListDc>;
setPermissions(Acl: any[]): Promise<AccessControlListDc>;
addPermissions(acl?: any /** Unknown props */): Promise<AccessControlListDc>;
removePermissions(Acl?: any[]): Promise<AccessControlListDc>;
removePermissions(Acl: any[]): Promise<AccessControlListDc>;
getPreview(resourceName?: string): string;
setPreview(file: FormData): Promise<void>;
}
import { Service } from './Service';
import { TableListDc, DetailedTableInfoDc } from './data-contracts';
import { TableListDc, DetailedTableInfoDc, UpdateTableDc } from './data-contracts';
export declare class Tables extends Service {
getTableList({ filter, offset, limit, orderByFields }: GetTableListParams): Promise<TableListDc>;
createTable(data?: DetailedTableInfoDc): Promise<DetailedTableInfoDc>;
updateTable(data?: UpdateTableDc): Promise<DetailedTableInfoDc>;
getTableInfo(name: string): Promise<DetailedTableInfoDc>;

@@ -7,0 +8,0 @@ dropTable(name: string): Promise<void>;

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

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

@@ -19,0 +22,0 @@ return this.http.get(`tables/${name}`).json();

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

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