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
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.22 to 0.1.23

32

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

@@ -117,3 +117,3 @@ /**

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -134,3 +134,3 @@ /**

/** Acl set */
permissions: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -175,3 +175,3 @@ /**

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -207,3 +207,3 @@ /**

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -526,3 +526,3 @@ /**

/** */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -556,3 +556,3 @@ /**

/** */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -685,3 +685,3 @@ /**

/** */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -778,3 +778,3 @@ /**

/** */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -811,7 +811,7 @@ /**

/** */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
/** */
acl?: {
/** */
[key: string]: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
[key: string]: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -961,3 +961,3 @@ /** */

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -1038,3 +1038,3 @@ /**

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -1066,3 +1066,3 @@ /**

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -1150,3 +1150,3 @@ /**

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -1160,3 +1160,3 @@ /**

/** The user name. */
userNames?: string[];
users?: string[];
};

@@ -1539,3 +1539,3 @@ /**

/** Resource permissions. */
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure';
permissions?: 'none' | 'read' | 'write' | 'configure' | 'read,write' | 'read,write,configure';
};

@@ -1542,0 +1542,0 @@ /**

import { ServiceBase } from './ServiceBase';
import { ProjectsListDc, TableListDc, ServiceListDc, CatalogDataDc, NewResourcesTypesDc } from './data-contracts';
export declare class ResourceCatalog extends ServiceBase {
getProjects({ query, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ProjectsListDc>;
getTables({ query, offset, limit, orderByFields, isFavorite, }: GetTablesParams): Promise<TableListDc>;
getLayers({ query, types, offset, limit, orderByFields, isFavorite, }: GetLayersParams): Promise<ServiceListDc>;
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>;

@@ -14,3 +14,3 @@ removeResource({ resourceType, resource, users }: RemoveResourceParams): Promise<void>;

/** */
query?: string;
filter?: string;
/** */

@@ -27,3 +27,3 @@ offset?: number;

/** */
query?: string;
filter?: string;
/** */

@@ -40,3 +40,3 @@ offset?: number;

/** */
query?: string;
filter?: string;
/** */

@@ -43,0 +43,0 @@ types?: string[];

@@ -9,6 +9,6 @@ /*

export class ResourceCatalog extends ServiceBase {
getProjects({ query, offset, limit, orderByFields, isFavorite, }) {
getProjects({ filter, offset, limit, orderByFields, isFavorite, }) {
return this.http
.get(`${this.name}/projects`, {
query,
filter,
offset,

@@ -21,6 +21,6 @@ limit,

}
getTables({ query, offset, limit, orderByFields, isFavorite, }) {
getTables({ filter, offset, limit, orderByFields, isFavorite, }) {
return this.http
.get(`${this.name}/tables`, {
query,
filter,
offset,

@@ -33,6 +33,6 @@ limit,

}
getLayers({ query, types, offset, limit, orderByFields, isFavorite, }) {
getLayers({ filter, types, offset, limit, orderByFields, isFavorite, }) {
return this.http
.get(`${this.name}/layers`, {
query,
filter,
types,

@@ -39,0 +39,0 @@ offset,

@@ -9,3 +9,2 @@ import { NotificationService } from '../__generated__/NotificationService';

private wsUrl?;
private reconnectCount;
constructor(info: ServiceInfoDc, http: IHttpClient);

@@ -18,2 +17,3 @@ on<Data, Result>(tag: string, handler: NotificationHandler<Data, Result>): void;

private connect;
private onWsConnected;
private onWsClosed;

@@ -20,0 +20,0 @@ private onWsMessage;

@@ -6,10 +6,8 @@ import { NotificationService } from '../__generated__/NotificationService';

super(info, http);
this.onWsConnected = () => {
console.log('WebSocket connection established.');
};
this.onWsClosed = () => {
if (this.reconnectCount < 5) {
this.connect();
this.reconnectCount += 1;
}
else {
console.log("Unable to connect via websocket after 5 attempts");
}
console.log('WebSocket connection closed.');
this.connect();
};

@@ -30,3 +28,2 @@ this.onWsMessage = (event) => {

this.emitter = new EventEmitter();
this.reconnectCount = 0;
}

@@ -62,2 +59,3 @@ on(tag, handler) {

this.ws = new WebSocket(this.wsUrl);
this.ws.onopen = this.onWsConnected;
this.ws.onclose = this.onWsClosed;

@@ -64,0 +62,0 @@ this.ws.onmessage = this.onWsMessage;

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

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