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

@neo4j/relate-api

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j/relate-api - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

109

dist/index.d.ts

@@ -13,3 +13,3 @@ // Generated by dts-bundle v0.7.3

class Settings {
class HostSettings {
allowSendReports: boolean;

@@ -19,5 +19,5 @@ allowSendStats: boolean;

}
class General {
online: boolean;
settings: Settings;
class HostEnvironment {
publicInternetAccess: boolean;
settings: HostSettings;
}

@@ -28,3 +28,3 @@ export enum GraphStatus {

}
export enum GraphLocalConnectionStatus {
export enum GraphConnectionStatus {
STOPPED = "STOPPED",

@@ -40,3 +40,10 @@ STOPPING = "STOPPING",

UPGRADING = "UPGRADING",
MISSING = "MISSING"
MISSING = "MISSING",
ACTIVATING = "ACTIVATING",
AVAILABLE = "AVAILABLE",
UPDATING = "UPDATING",
NOT_AVAILABLE = "NOT_AVAILABLE",
INVALID_PASSWORD = "INVALID_PASSWORD",
DEACTIVATING = "DEACTIVATING",
DEACTIVATED = "DEACTIVATED"
}

@@ -59,3 +66,3 @@ export class GraphInfo {

}
export class BoltConfiguration {
export class BoltPrincipals {
enabled: boolean;

@@ -69,3 +76,3 @@ host: string;

}
export class HTTPConfiguration {
export class HTTPPrincipals {
enabled: boolean;

@@ -76,44 +83,37 @@ host: string;

}
export class GraphProtocolConfiguration {
bolt: BoltConfiguration;
http: HTTPConfiguration;
https: HTTPConfiguration;
export class GraphProtocolPrincipals {
bolt: BoltPrincipals;
http: HTTPPrincipals;
https: HTTPPrincipals;
}
export class GraphLocalConnectionConfiguration {
export class GraphConnectionPrincipals {
path: string;
protocols: GraphProtocolConfiguration;
protocols: GraphProtocolPrincipals;
authenticationMethods?: KerberosMethod;
}
export class GraphLocalConnection {
type: 'LOCAL';
databaseType: 'neo4j';
databaseStatus: GraphLocalConnectionStatus;
export class GraphConnection {
type: "LOCAL" | "REMOTE";
databaseType: "neo4j";
databaseStatus: GraphConnectionStatus;
info: GraphInfo;
configuration: GraphLocalConnectionConfiguration;
principals: GraphConnectionPrincipals;
}
export enum GraphRemoteConnectionStatus {
UNKNOWN = "UNKNOWN",
NEW = "NEW",
CREATING = "CREATING",
REMOVING = "REMOVING",
ACTIVATING = "ACTIVATING",
AVAILABLE = "AVAILABLE",
UPDATING = "UPDATING",
NOT_AVAILABLE = "NOT_AVAILABLE",
INVALID_PASSWORD = "INVALID_PASSWORD",
DEACTIVATING = "DEACTIVATING",
DEACTIVATED = "DEACTIVATED"
export class File {
id: string;
name: string;
size: number;
url: string;
contentType: string;
}
export class GraphRemoteConnectionProtocols {
protocols: GraphProtocolConfiguration;
authenticationMethods?: KerberosMethod;
export class GraphApp {
id: string;
publisher: string;
name: string;
version: string;
}
export class GraphRemoteConnection {
type: 'REMOTE';
databaseType: 'neo4j';
databaseStatus: GraphRemoteConnectionStatus;
info: GraphInfo;
configuration: GraphRemoteConnectionProtocols;
export class Plugin {
id: string;
name: string;
version: string;
}
export const GraphConnection: GraphLocalConnection | GraphRemoteConnection;
export class Graph {

@@ -124,4 +124,9 @@ id: string;

status: GraphStatus;
connection: typeof GraphConnection;
connection: GraphConnection;
plugins: Plugin[];
}
export class GraphDatabase {
id: string;
graphs: Graph[];
}
export class Project {

@@ -131,7 +136,9 @@ id: string;

graphs: Graph[];
apps: GraphApp[];
files: File[];
}
export class ActivationKey {
publisher: string;
featureName: string;
expirationDate: string;
activationVersion: string;
featureVersion: string;

@@ -143,7 +150,15 @@ registrant: string;

}
export class UserAccount {
activationKeys: ActivationKey[];
name: string;
}
export class Workspace {
activationKeys: ActivationKey[];
general: General;
me: UserAccount;
host: HostEnvironment;
projects: Project[];
}
export class PlatformWorkspace {
graphs: Graph[];
apps: GraphApp[];
}
export {};

@@ -153,5 +168,7 @@

export interface ResolverAPI<TContext> {
getWorkspace(context: TContext): Promise<Workspace>;
workspace(context: TContext): Promise<Workspace>;
platformWorkspace(context: TContext): Promise<PlatformWorkspace>;
onWorkspaceChange(context: TContext, updatedWorkspace: Workspace): Promise<Workspace>;
onPlatformWorkspaceChange(context: TContext, updatedWorkspace: PlatformWorkspace): Promise<PlatformWorkspace>;
}

@@ -120,3 +120,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

const type_graphql_1 = __webpack_require__(0);
let Settings = class Settings {
let HostSettings = class HostSettings {
};

@@ -126,15 +126,15 @@ __decorate([

__metadata("design:type", Boolean)
], Settings.prototype, "allowSendReports", void 0);
], HostSettings.prototype, "allowSendReports", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", Boolean)
], Settings.prototype, "allowSendStats", void 0);
], HostSettings.prototype, "allowSendStats", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", Boolean)
], Settings.prototype, "allowStoreCredentials", void 0);
Settings = __decorate([
], HostSettings.prototype, "allowStoreCredentials", void 0);
HostSettings = __decorate([
type_graphql_1.ObjectType()
], Settings);
let General = class General {
], HostSettings);
let HostEnvironment = class HostEnvironment {
};

@@ -144,10 +144,10 @@ __decorate([

__metadata("design:type", Boolean)
], General.prototype, "online", void 0);
], HostEnvironment.prototype, "publicInternetAccess", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", Settings)
], General.prototype, "settings", void 0);
General = __decorate([
__metadata("design:type", HostSettings)
], HostEnvironment.prototype, "settings", void 0);
HostEnvironment = __decorate([
type_graphql_1.ObjectType()
], General);
], HostEnvironment);
var GraphStatus;

@@ -159,20 +159,28 @@ (function (GraphStatus) {

type_graphql_1.registerEnumType(GraphStatus, {
name: 'GraphStatus'
name: "GraphStatus"
});
var GraphLocalConnectionStatus;
(function (GraphLocalConnectionStatus) {
GraphLocalConnectionStatus["STOPPED"] = "STOPPED";
GraphLocalConnectionStatus["STOPPING"] = "STOPPING";
GraphLocalConnectionStatus["STARTING"] = "STARTING";
GraphLocalConnectionStatus["RESTARTING"] = "RESTARTING";
GraphLocalConnectionStatus["RUNNING"] = "RUNNING";
GraphLocalConnectionStatus["UNKNOWN"] = "UNKNOWN";
GraphLocalConnectionStatus["NEW"] = "NEW";
GraphLocalConnectionStatus["CREATING"] = "CREATING";
GraphLocalConnectionStatus["REMOVING"] = "REMOVING";
GraphLocalConnectionStatus["UPGRADING"] = "UPGRADING";
GraphLocalConnectionStatus["MISSING"] = "MISSING";
})(GraphLocalConnectionStatus = exports.GraphLocalConnectionStatus || (exports.GraphLocalConnectionStatus = {}));
type_graphql_1.registerEnumType(GraphLocalConnectionStatus, {
name: 'GraphLocalConnectionStatus'
var GraphConnectionStatus;
(function (GraphConnectionStatus) {
GraphConnectionStatus["STOPPED"] = "STOPPED";
GraphConnectionStatus["STOPPING"] = "STOPPING";
GraphConnectionStatus["STARTING"] = "STARTING";
GraphConnectionStatus["RESTARTING"] = "RESTARTING";
GraphConnectionStatus["RUNNING"] = "RUNNING";
GraphConnectionStatus["UNKNOWN"] = "UNKNOWN";
GraphConnectionStatus["NEW"] = "NEW";
GraphConnectionStatus["CREATING"] = "CREATING";
GraphConnectionStatus["REMOVING"] = "REMOVING";
GraphConnectionStatus["UPGRADING"] = "UPGRADING";
GraphConnectionStatus["MISSING"] = "MISSING";
// remote connections
GraphConnectionStatus["ACTIVATING"] = "ACTIVATING";
GraphConnectionStatus["AVAILABLE"] = "AVAILABLE";
GraphConnectionStatus["UPDATING"] = "UPDATING";
GraphConnectionStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
GraphConnectionStatus["INVALID_PASSWORD"] = "INVALID_PASSWORD";
GraphConnectionStatus["DEACTIVATING"] = "DEACTIVATING";
GraphConnectionStatus["DEACTIVATED"] = "DEACTIVATED";
})(GraphConnectionStatus = exports.GraphConnectionStatus || (exports.GraphConnectionStatus = {}));
type_graphql_1.registerEnumType(GraphConnectionStatus, {
name: "GraphConnectionStatus"
});

@@ -224,5 +232,5 @@ let GraphInfo = class GraphInfo {

type_graphql_1.registerEnumType(TLSLevel, {
name: 'TLSLevel'
name: "TLSLevel"
});
let BoltConfiguration = class BoltConfiguration {
let BoltPrincipals = class BoltPrincipals {
};

@@ -232,32 +240,32 @@ __decorate([

__metadata("design:type", Boolean)
], BoltConfiguration.prototype, "enabled", void 0);
], BoltPrincipals.prototype, "enabled", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], BoltConfiguration.prototype, "host", void 0);
], BoltPrincipals.prototype, "host", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", Number)
], BoltConfiguration.prototype, "port", void 0);
], BoltPrincipals.prototype, "port", void 0);
__decorate([
type_graphql_1.Field(_ => TLSLevel),
__metadata("design:type", String)
], BoltConfiguration.prototype, "tlsLevel", void 0);
], BoltPrincipals.prototype, "tlsLevel", void 0);
__decorate([
type_graphql_1.Field({ nullable: true }),
__metadata("design:type", String)
], BoltConfiguration.prototype, "username", void 0);
], BoltPrincipals.prototype, "username", void 0);
__decorate([
type_graphql_1.Field({ nullable: true }),
__metadata("design:type", String)
], BoltConfiguration.prototype, "password", void 0);
], BoltPrincipals.prototype, "password", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], BoltConfiguration.prototype, "url", void 0);
BoltConfiguration = __decorate([
], BoltPrincipals.prototype, "url", void 0);
BoltPrincipals = __decorate([
type_graphql_1.ObjectType()
], BoltConfiguration);
exports.BoltConfiguration = BoltConfiguration;
let HTTPConfiguration = class HTTPConfiguration {
], BoltPrincipals);
exports.BoltPrincipals = BoltPrincipals;
let HTTPPrincipals = class HTTPPrincipals {
};

@@ -267,38 +275,38 @@ __decorate([

__metadata("design:type", Boolean)
], HTTPConfiguration.prototype, "enabled", void 0);
], HTTPPrincipals.prototype, "enabled", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], HTTPConfiguration.prototype, "host", void 0);
], HTTPPrincipals.prototype, "host", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", Number)
], HTTPConfiguration.prototype, "port", void 0);
], HTTPPrincipals.prototype, "port", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], HTTPConfiguration.prototype, "url", void 0);
HTTPConfiguration = __decorate([
], HTTPPrincipals.prototype, "url", void 0);
HTTPPrincipals = __decorate([
type_graphql_1.ObjectType()
], HTTPConfiguration);
exports.HTTPConfiguration = HTTPConfiguration;
let GraphProtocolConfiguration = class GraphProtocolConfiguration {
], HTTPPrincipals);
exports.HTTPPrincipals = HTTPPrincipals;
let GraphProtocolPrincipals = class GraphProtocolPrincipals {
};
__decorate([
type_graphql_1.Field(),
__metadata("design:type", BoltConfiguration)
], GraphProtocolConfiguration.prototype, "bolt", void 0);
__metadata("design:type", BoltPrincipals)
], GraphProtocolPrincipals.prototype, "bolt", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", HTTPConfiguration)
], GraphProtocolConfiguration.prototype, "http", void 0);
__metadata("design:type", HTTPPrincipals)
], GraphProtocolPrincipals.prototype, "http", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", HTTPConfiguration)
], GraphProtocolConfiguration.prototype, "https", void 0);
GraphProtocolConfiguration = __decorate([
__metadata("design:type", HTTPPrincipals)
], GraphProtocolPrincipals.prototype, "https", void 0);
GraphProtocolPrincipals = __decorate([
type_graphql_1.ObjectType()
], GraphProtocolConfiguration);
exports.GraphProtocolConfiguration = GraphProtocolConfiguration;
let GraphLocalConnectionConfiguration = class GraphLocalConnectionConfiguration {
], GraphProtocolPrincipals);
exports.GraphProtocolPrincipals = GraphProtocolPrincipals;
let GraphConnectionPrincipals = class GraphConnectionPrincipals {
};

@@ -308,16 +316,16 @@ __decorate([

__metadata("design:type", String)
], GraphLocalConnectionConfiguration.prototype, "path", void 0);
], GraphConnectionPrincipals.prototype, "path", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", GraphProtocolConfiguration)
], GraphLocalConnectionConfiguration.prototype, "protocols", void 0);
__metadata("design:type", GraphProtocolPrincipals)
], GraphConnectionPrincipals.prototype, "protocols", void 0);
__decorate([
type_graphql_1.Field({ nullable: true }),
__metadata("design:type", KerberosMethod)
], GraphLocalConnectionConfiguration.prototype, "authenticationMethods", void 0);
GraphLocalConnectionConfiguration = __decorate([
], GraphConnectionPrincipals.prototype, "authenticationMethods", void 0);
GraphConnectionPrincipals = __decorate([
type_graphql_1.ObjectType()
], GraphLocalConnectionConfiguration);
exports.GraphLocalConnectionConfiguration = GraphLocalConnectionConfiguration;
let GraphLocalConnection = class GraphLocalConnection {
], GraphConnectionPrincipals);
exports.GraphConnectionPrincipals = GraphConnectionPrincipals;
let GraphConnection = class GraphConnection {
};

@@ -327,55 +335,50 @@ __decorate([

__metadata("design:type", String)
], GraphLocalConnection.prototype, "type", void 0);
], GraphConnection.prototype, "type", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], GraphLocalConnection.prototype, "databaseType", void 0);
], GraphConnection.prototype, "databaseType", void 0);
__decorate([
type_graphql_1.Field(_ => GraphLocalConnectionStatus),
type_graphql_1.Field(_ => GraphConnectionStatus),
__metadata("design:type", String)
], GraphLocalConnection.prototype, "databaseStatus", void 0);
], GraphConnection.prototype, "databaseStatus", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", GraphInfo)
], GraphLocalConnection.prototype, "info", void 0);
], GraphConnection.prototype, "info", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", GraphLocalConnectionConfiguration)
], GraphLocalConnection.prototype, "configuration", void 0);
GraphLocalConnection = __decorate([
__metadata("design:type", GraphConnectionPrincipals)
], GraphConnection.prototype, "principals", void 0);
GraphConnection = __decorate([
type_graphql_1.ObjectType()
], GraphLocalConnection);
exports.GraphLocalConnection = GraphLocalConnection;
var GraphRemoteConnectionStatus;
(function (GraphRemoteConnectionStatus) {
GraphRemoteConnectionStatus["UNKNOWN"] = "UNKNOWN";
GraphRemoteConnectionStatus["NEW"] = "NEW";
GraphRemoteConnectionStatus["CREATING"] = "CREATING";
GraphRemoteConnectionStatus["REMOVING"] = "REMOVING";
GraphRemoteConnectionStatus["ACTIVATING"] = "ACTIVATING";
GraphRemoteConnectionStatus["AVAILABLE"] = "AVAILABLE";
GraphRemoteConnectionStatus["UPDATING"] = "UPDATING";
GraphRemoteConnectionStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
GraphRemoteConnectionStatus["INVALID_PASSWORD"] = "INVALID_PASSWORD";
GraphRemoteConnectionStatus["DEACTIVATING"] = "DEACTIVATING";
GraphRemoteConnectionStatus["DEACTIVATED"] = "DEACTIVATED";
})(GraphRemoteConnectionStatus = exports.GraphRemoteConnectionStatus || (exports.GraphRemoteConnectionStatus = {}));
type_graphql_1.registerEnumType(GraphRemoteConnectionStatus, {
name: 'GraphRemoteConnectionStatus'
});
let GraphRemoteConnectionProtocols = class GraphRemoteConnectionProtocols {
], GraphConnection);
exports.GraphConnection = GraphConnection;
let File = class File {
};
__decorate([
type_graphql_1.Field(type => type_graphql_1.ID),
__metadata("design:type", String)
], File.prototype, "id", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", GraphProtocolConfiguration)
], GraphRemoteConnectionProtocols.prototype, "protocols", void 0);
__metadata("design:type", String)
], File.prototype, "name", void 0);
__decorate([
type_graphql_1.Field({ nullable: true }),
__metadata("design:type", KerberosMethod)
], GraphRemoteConnectionProtocols.prototype, "authenticationMethods", void 0);
GraphRemoteConnectionProtocols = __decorate([
type_graphql_1.Field(type => type_graphql_1.Int),
__metadata("design:type", Number)
], File.prototype, "size", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], File.prototype, "url", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], File.prototype, "contentType", void 0);
File = __decorate([
type_graphql_1.ObjectType()
], GraphRemoteConnectionProtocols);
exports.GraphRemoteConnectionProtocols = GraphRemoteConnectionProtocols;
let GraphRemoteConnection = class GraphRemoteConnection {
], File);
exports.File = File;
let GraphApp = class GraphApp {
};

@@ -385,31 +388,41 @@ __decorate([

__metadata("design:type", String)
], GraphRemoteConnection.prototype, "type", void 0);
], GraphApp.prototype, "id", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], GraphRemoteConnection.prototype, "databaseType", void 0);
], GraphApp.prototype, "publisher", void 0);
__decorate([
type_graphql_1.Field(_ => GraphRemoteConnectionStatus),
type_graphql_1.Field(),
__metadata("design:type", String)
], GraphRemoteConnection.prototype, "databaseStatus", void 0);
], GraphApp.prototype, "name", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", GraphInfo)
], GraphRemoteConnection.prototype, "info", void 0);
__metadata("design:type", String)
], GraphApp.prototype, "version", void 0);
GraphApp = __decorate([
type_graphql_1.ObjectType()
], GraphApp);
exports.GraphApp = GraphApp;
let Plugin = class Plugin {
};
__decorate([
type_graphql_1.Field(),
__metadata("design:type", GraphRemoteConnectionProtocols)
], GraphRemoteConnection.prototype, "configuration", void 0);
GraphRemoteConnection = __decorate([
__metadata("design:type", String)
], Plugin.prototype, "id", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], Plugin.prototype, "name", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], Plugin.prototype, "version", void 0);
Plugin = __decorate([
type_graphql_1.ObjectType()
], GraphRemoteConnection);
exports.GraphRemoteConnection = GraphRemoteConnection;
exports.GraphConnection = type_graphql_1.createUnionType({
name: 'GraphConnection',
types: [GraphLocalConnection, GraphRemoteConnection]
});
], Plugin);
exports.Plugin = Plugin;
let Graph = class Graph {
};
__decorate([
type_graphql_1.Field(),
type_graphql_1.Field(type => type_graphql_1.ID),
__metadata("design:type", String)

@@ -430,5 +443,9 @@ ], Graph.prototype, "id", void 0);

__decorate([
type_graphql_1.Field(_ => exports.GraphConnection),
__metadata("design:type", Object)
type_graphql_1.Field(_ => GraphConnection),
__metadata("design:type", GraphConnection)
], Graph.prototype, "connection", void 0);
__decorate([
type_graphql_1.Field(_ => [Plugin]),
__metadata("design:type", Array)
], Graph.prototype, "plugins", void 0);
Graph = __decorate([

@@ -438,6 +455,20 @@ type_graphql_1.ObjectType()

exports.Graph = Graph;
let GraphDatabase = class GraphDatabase {
};
__decorate([
type_graphql_1.Field(type => type_graphql_1.ID),
__metadata("design:type", String)
], GraphDatabase.prototype, "id", void 0);
__decorate([
type_graphql_1.Field(_ => [Graph]),
__metadata("design:type", Array)
], GraphDatabase.prototype, "graphs", void 0);
GraphDatabase = __decorate([
type_graphql_1.ObjectType()
], GraphDatabase);
exports.GraphDatabase = GraphDatabase;
let Project = class Project {
};
__decorate([
type_graphql_1.Field(),
type_graphql_1.Field(type => type_graphql_1.ID),
__metadata("design:type", String)

@@ -453,2 +484,10 @@ ], Project.prototype, "id", void 0);

], Project.prototype, "graphs", void 0);
__decorate([
type_graphql_1.Field(_ => [GraphApp]),
__metadata("design:type", Array)
], Project.prototype, "apps", void 0);
__decorate([
type_graphql_1.Field(_ => [File]),
__metadata("design:type", Array)
], Project.prototype, "files", void 0);
Project = __decorate([

@@ -463,11 +502,11 @@ type_graphql_1.ObjectType()

__metadata("design:type", String)
], ActivationKey.prototype, "featureName", void 0);
], ActivationKey.prototype, "publisher", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], ActivationKey.prototype, "expirationDate", void 0);
], ActivationKey.prototype, "featureName", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", String)
], ActivationKey.prototype, "activationVersion", void 0);
], ActivationKey.prototype, "expirationDate", void 0);
__decorate([

@@ -497,3 +536,3 @@ type_graphql_1.Field(),

exports.ActivationKey = ActivationKey;
let Workspace = class Workspace {
let UserAccount = class UserAccount {
};

@@ -503,8 +542,22 @@ __decorate([

__metadata("design:type", Array)
], Workspace.prototype, "activationKeys", void 0);
], UserAccount.prototype, "activationKeys", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", General)
], Workspace.prototype, "general", void 0);
__metadata("design:type", String)
], UserAccount.prototype, "name", void 0);
UserAccount = __decorate([
type_graphql_1.ObjectType()
], UserAccount);
exports.UserAccount = UserAccount;
let Workspace = class Workspace {
};
__decorate([
type_graphql_1.Field(),
__metadata("design:type", UserAccount)
], Workspace.prototype, "me", void 0);
__decorate([
type_graphql_1.Field(),
__metadata("design:type", HostEnvironment)
], Workspace.prototype, "host", void 0);
__decorate([
type_graphql_1.Field(_ => [Project]),

@@ -517,2 +570,16 @@ __metadata("design:type", Array)

exports.Workspace = Workspace;
let PlatformWorkspace = class PlatformWorkspace {
};
__decorate([
type_graphql_1.Field(_ => [Graph]),
__metadata("design:type", Array)
], PlatformWorkspace.prototype, "graphs", void 0);
__decorate([
type_graphql_1.Field(_ => [GraphApp]),
__metadata("design:type", Array)
], PlatformWorkspace.prototype, "apps", void 0);
PlatformWorkspace = __decorate([
type_graphql_1.ObjectType()
], PlatformWorkspace);
exports.PlatformWorkspace = PlatformWorkspace;

@@ -548,3 +615,3 @@

module.exports = "# -----------------------------------------------\n# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!\n# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!\n# -----------------------------------------------\n\ntype ActivationKey {\n featureName: String!\n expirationDate: String!\n activationVersion: String!\n featureVersion: String!\n registrant: String!\n organization: String!\n email: String!\n signature: String!\n}\n\ntype BoltConfiguration {\n enabled: Boolean!\n host: String!\n port: Float!\n tlsLevel: TLSLevel!\n username: String\n password: String\n url: String!\n}\n\ntype Enabled {\n enabled: Boolean!\n}\n\ntype General {\n online: Boolean!\n settings: Settings!\n}\n\ntype Graph {\n id: String!\n name: String!\n description: String!\n status: GraphStatus!\n connection: GraphConnection!\n}\n\nunion GraphConnection = GraphLocalConnection | GraphRemoteConnection\n\ntype GraphInfo {\n version: String!\n edition: String!\n}\n\ntype GraphLocalConnection {\n type: String!\n databaseType: String!\n databaseStatus: GraphLocalConnectionStatus!\n info: GraphInfo!\n configuration: GraphLocalConnectionConfiguration!\n}\n\ntype GraphLocalConnectionConfiguration {\n path: String!\n protocols: GraphProtocolConfiguration!\n authenticationMethods: KerberosMethod\n}\n\nenum GraphLocalConnectionStatus {\n STOPPED\n STOPPING\n STARTING\n RESTARTING\n RUNNING\n UNKNOWN\n NEW\n CREATING\n REMOVING\n UPGRADING\n MISSING\n}\n\ntype GraphProtocolConfiguration {\n bolt: BoltConfiguration!\n http: HTTPConfiguration!\n https: HTTPConfiguration!\n}\n\ntype GraphRemoteConnection {\n type: String!\n databaseType: String!\n databaseStatus: GraphRemoteConnectionStatus!\n info: GraphInfo!\n configuration: GraphRemoteConnectionProtocols!\n}\n\ntype GraphRemoteConnectionProtocols {\n protocols: GraphProtocolConfiguration!\n authenticationMethods: KerberosMethod\n}\n\nenum GraphRemoteConnectionStatus {\n UNKNOWN\n NEW\n CREATING\n REMOVING\n ACTIVATING\n AVAILABLE\n UPDATING\n NOT_AVAILABLE\n INVALID_PASSWORD\n DEACTIVATING\n DEACTIVATED\n}\n\nenum GraphStatus {\n ACTIVE\n INACTIVE\n}\n\ntype HTTPConfiguration {\n enabled: Boolean!\n host: String!\n port: Float!\n url: String!\n}\n\ntype KerberosMethod {\n kerberos: Enabled!\n servicePrincipal: String\n}\n\ntype Project {\n id: String!\n name: String!\n graphs: [Graph!]!\n}\n\ntype Query {\n getWorkspace: Workspace!\n}\n\ntype Settings {\n allowSendReports: Boolean!\n allowSendStats: Boolean!\n allowStoreCredentials: Boolean!\n}\n\ntype Subscription {\n onWorkspaceChange: Workspace!\n}\n\nenum TLSLevel {\n OPTIONAL\n REQUIRED\n DISABLED\n}\n\ntype Workspace {\n activationKeys: [ActivationKey!]!\n general: General!\n projects: [Project!]!\n}\n"
module.exports = "# -----------------------------------------------\n# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!\n# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!\n# -----------------------------------------------\n\ntype ActivationKey {\n publisher: String!\n featureName: String!\n expirationDate: String!\n featureVersion: String!\n registrant: String!\n organization: String!\n email: String!\n signature: String!\n}\n\ntype BoltPrincipals {\n enabled: Boolean!\n host: String!\n port: Float!\n tlsLevel: TLSLevel!\n username: String\n password: String\n url: String!\n}\n\ntype Enabled {\n enabled: Boolean!\n}\n\ntype File {\n id: ID!\n name: String!\n size: Int!\n url: String!\n contentType: String!\n}\n\ntype Graph {\n id: ID!\n name: String!\n description: String!\n status: GraphStatus!\n connection: GraphConnection!\n plugins: [Plugin!]!\n}\n\ntype GraphApp {\n id: String!\n publisher: String!\n name: String!\n version: String!\n}\n\ntype GraphConnection {\n type: String!\n databaseType: String!\n databaseStatus: GraphConnectionStatus!\n info: GraphInfo!\n principals: GraphConnectionPrincipals!\n}\n\ntype GraphConnectionPrincipals {\n path: String!\n protocols: GraphProtocolPrincipals!\n authenticationMethods: KerberosMethod\n}\n\nenum GraphConnectionStatus {\n STOPPED\n STOPPING\n STARTING\n RESTARTING\n RUNNING\n UNKNOWN\n NEW\n CREATING\n REMOVING\n UPGRADING\n MISSING\n ACTIVATING\n AVAILABLE\n UPDATING\n NOT_AVAILABLE\n INVALID_PASSWORD\n DEACTIVATING\n DEACTIVATED\n}\n\ntype GraphDatabase {\n id: ID!\n graphs: [Graph!]!\n}\n\ntype GraphInfo {\n version: String!\n edition: String!\n}\n\ntype GraphProtocolPrincipals {\n bolt: BoltPrincipals!\n http: HTTPPrincipals!\n https: HTTPPrincipals!\n}\n\nenum GraphStatus {\n ACTIVE\n INACTIVE\n}\n\ntype HostEnvironment {\n publicInternetAccess: Boolean!\n settings: HostSettings!\n}\n\ntype HostSettings {\n allowSendReports: Boolean!\n allowSendStats: Boolean!\n allowStoreCredentials: Boolean!\n}\n\ntype HTTPPrincipals {\n enabled: Boolean!\n host: String!\n port: Float!\n url: String!\n}\n\ntype KerberosMethod {\n kerberos: Enabled!\n servicePrincipal: String\n}\n\ntype PlatformWorkspace {\n graphs: [Graph!]!\n apps: [GraphApp!]!\n}\n\ntype Plugin {\n id: String!\n name: String!\n version: String!\n}\n\ntype Project {\n id: ID!\n name: String!\n graphs: [Graph!]!\n apps: [GraphApp!]!\n files: [File!]!\n}\n\ntype Query {\n workspace: Workspace!\n platformWorkspace: PlatformWorkspace!\n}\n\ntype Subscription {\n onWorkspaceChange: Workspace!\n onPlatformWorkspaceChange: PlatformWorkspace!\n}\n\nenum TLSLevel {\n OPTIONAL\n REQUIRED\n DISABLED\n}\n\ntype UserAccount {\n activationKeys: [ActivationKey!]!\n name: String!\n}\n\ntype Workspace {\n me: UserAccount!\n host: HostEnvironment!\n projects: [Project!]!\n}\n"

@@ -574,10 +641,15 @@ /***/ }),

function createResolver(api) {
let WorkspaceResolver = class WorkspaceResolver {
getWorkspace(context) {
return api.getWorkspace(context);
let WorkspacesResolver = class WorkspacesResolver {
workspace(context) {
return api.workspace(context);
}
;
platformWorkspace(context) {
return api.platformWorkspace(context);
}
onWorkspaceChange(context, updatedWorkspace) {
return api.onWorkspaceChange(context, updatedWorkspace);
}
onPlatformWorkspaceChange(context, updatedWorkspace) {
return api.onPlatformWorkspaceChange(context, updatedWorkspace);
}
};

@@ -590,16 +662,34 @@ __decorate([

__metadata("design:returntype", Promise)
], WorkspaceResolver.prototype, "getWorkspace", null);
], WorkspacesResolver.prototype, "workspace", null);
__decorate([
type_graphql_1.Query(_ => types_1.PlatformWorkspace),
__param(0, type_graphql_1.Ctx()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], WorkspacesResolver.prototype, "platformWorkspace", null);
__decorate([
type_graphql_1.Subscription(_ => types_1.Workspace, {
topics: constants_1.WorkspaceUpdateTopics
}),
__param(0, type_graphql_1.Ctx()), __param(1, type_graphql_1.Root()),
__param(0, type_graphql_1.Ctx()),
__param(1, type_graphql_1.Root()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, types_1.Workspace]),
__metadata("design:returntype", Promise)
], WorkspaceResolver.prototype, "onWorkspaceChange", null);
WorkspaceResolver = __decorate([
], WorkspacesResolver.prototype, "onWorkspaceChange", null);
__decorate([
type_graphql_1.Subscription(_ => types_1.PlatformWorkspace, {
topics: constants_1.PlatformWorkspaceUpdateTopics
}),
__param(0, type_graphql_1.Ctx()),
__param(1, type_graphql_1.Root()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, types_1.PlatformWorkspace]),
__metadata("design:returntype", Promise)
], WorkspacesResolver.prototype, "onPlatformWorkspaceChange", null);
WorkspacesResolver = __decorate([
type_graphql_1.Resolver(types_1.Workspace)
], WorkspaceResolver);
return WorkspaceResolver;
], WorkspacesResolver);
return WorkspacesResolver;
}

@@ -616,23 +706,25 @@ exports.createResolver = createResolver;

Object.defineProperty(exports, "__esModule", { value: true });
exports.APPLICATION_ONLINE = 'APPLICATION_ONLINE';
exports.APPLICATION_OFFLINE = 'APPLICATION_OFFLINE';
exports.APPLICATION_SETTINGS_SAVED = 'APPLICATION_SETTINGS_SAVED';
exports.DATABASE_CREATED = 'DATABASE_CREATED';
exports.DATABASE_STARTED = 'DATABASE_STARTED';
exports.DATABASE_STOPPED = 'DATABASE_STOPPED';
exports.DATABASE_SETTINGS_SAVED = 'DATABASE_SETTINGS_SAVED';
exports.DATABASE_RENAMED = 'DATABASE_RENAMED';
exports.DATABASE_REMOVED = 'DATABASE_REMOVED';
exports.DATABASE_UPDATED = 'DATABASE_UPDATED';
exports.DATABASE_UPGRADED = 'DATABASE_UPGRADED';
exports.REMOTE_CONNECTION_CREATED = 'REMOTE_CONNECTION_CREATED';
exports.REMOTE_CONNECTION_REMOVED = 'REMOTE_CONNECTION_REMOVED';
exports.REMOTE_CONNECTION_ACTIVATED = 'REMOTE_CONNECTION_ACTIVATED';
exports.REMOTE_CONNECTION_DEACTIVATED = 'REMOTE_CONNECTION_DEACTIVATED';
exports.REMOTE_CONNECTION_UPDATED = 'REMOTE_CONNECTION_UPDATED';
exports.PROJECT_CREATED = 'PROJECT_CREATED';
exports.PROJECT_REMOVED = 'PROJECT_REMOVED';
exports.PROJECT_RENAMED = 'PROJECT_RENAMED';
exports.GRAPH_ACTIVE = 'GRAPH_ACTIVE';
exports.GRAPH_INACTIVE = 'GRAPH_INACTIVE';
exports.APPLICATION_ONLINE = "APPLICATION_ONLINE";
exports.APPLICATION_OFFLINE = "APPLICATION_OFFLINE";
exports.APPLICATION_SETTINGS_SAVED = "APPLICATION_SETTINGS_SAVED";
exports.DATABASE_CREATED = "DATABASE_CREATED";
exports.DATABASE_STARTED = "DATABASE_STARTED";
exports.DATABASE_STOPPED = "DATABASE_STOPPED";
exports.DATABASE_SETTINGS_SAVED = "DATABASE_SETTINGS_SAVED";
exports.DATABASE_RENAMED = "DATABASE_RENAMED";
exports.DATABASE_REMOVED = "DATABASE_REMOVED";
exports.DATABASE_UPDATED = "DATABASE_UPDATED";
exports.DATABASE_UPGRADED = "DATABASE_UPGRADED";
exports.REMOTE_CONNECTION_CREATED = "REMOTE_CONNECTION_CREATED";
exports.REMOTE_CONNECTION_REMOVED = "REMOTE_CONNECTION_REMOVED";
exports.REMOTE_CONNECTION_ACTIVATED = "REMOTE_CONNECTION_ACTIVATED";
exports.REMOTE_CONNECTION_DEACTIVATED = "REMOTE_CONNECTION_DEACTIVATED";
exports.REMOTE_CONNECTION_UPDATED = "REMOTE_CONNECTION_UPDATED";
exports.PROJECT_CREATED = "PROJECT_CREATED";
exports.PROJECT_REMOVED = "PROJECT_REMOVED";
exports.PROJECT_RENAMED = "PROJECT_RENAMED";
exports.GRAPH_ACTIVE = "GRAPH_ACTIVE";
exports.GRAPH_INACTIVE = "GRAPH_INACTIVE";
exports.PLATFORM_GRAPH_ACTIVE = "PLATFORM_GRAPH_ACTIVE";
exports.PLATFORM_GRAPH_INACTIVE = "PLATFORM_GRAPH_INACTIVE";
exports.DATABASE_CHANGING_ACTIONS = [

@@ -653,3 +745,7 @@ exports.DATABASE_CREATED,

];
exports.PROJECT_CHANGING_ACTIONS = [exports.PROJECT_CREATED, exports.PROJECT_REMOVED, exports.PROJECT_RENAMED];
exports.PROJECT_CHANGING_ACTIONS = [
exports.PROJECT_CREATED,
exports.PROJECT_REMOVED,
exports.PROJECT_RENAMED
];
exports.WorkspaceUpdateTopics = [

@@ -664,2 +760,6 @@ exports.APPLICATION_SETTINGS_SAVED,

];
exports.PlatformWorkspaceUpdateTopics = [
exports.PLATFORM_GRAPH_ACTIVE,
exports.PLATFORM_GRAPH_INACTIVE
];

@@ -666,0 +766,0 @@

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("relate-api",[],t):"object"==typeof exports?exports["relate-api"]=t():e["relate-api"]=t()}(global,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=require("type-graphql")},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,p=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(p=(r<3?i(p):r>3?i(t,n,p):i(t,n))||p);return r>3&&p&&Object.defineProperty(t,n,p),p},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);let p=class{};o([r.Field(),i("design:type",Boolean)],p.prototype,"allowSendReports",void 0),o([r.Field(),i("design:type",Boolean)],p.prototype,"allowSendStats",void 0),o([r.Field(),i("design:type",Boolean)],p.prototype,"allowStoreCredentials",void 0),p=o([r.ObjectType()],p);let a=class{};var s,d;o([r.Field(),i("design:type",Boolean)],a.prototype,"online",void 0),o([r.Field(),i("design:type",p)],a.prototype,"settings",void 0),a=o([r.ObjectType()],a),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(s=t.GraphStatus||(t.GraphStatus={})),r.registerEnumType(s,{name:"GraphStatus"}),function(e){e.STOPPED="STOPPED",e.STOPPING="STOPPING",e.STARTING="STARTING",e.RESTARTING="RESTARTING",e.RUNNING="RUNNING",e.UNKNOWN="UNKNOWN",e.NEW="NEW",e.CREATING="CREATING",e.REMOVING="REMOVING",e.UPGRADING="UPGRADING",e.MISSING="MISSING"}(d=t.GraphLocalConnectionStatus||(t.GraphLocalConnectionStatus={})),r.registerEnumType(d,{name:"GraphLocalConnectionStatus"});let l=class{};o([r.Field(),i("design:type",String)],l.prototype,"version",void 0),o([r.Field(),i("design:type",String)],l.prototype,"edition",void 0),l=o([r.ObjectType()],l),t.GraphInfo=l;let E=class{};o([r.Field(),i("design:type",Boolean)],E.prototype,"enabled",void 0),E=o([r.ObjectType()],E),t.Enabled=E;let A=class{};var T;o([r.Field(),i("design:type",E)],A.prototype,"kerberos",void 0),o([r.Field({nullable:!0}),i("design:type",String)],A.prototype,"servicePrincipal",void 0),A=o([r.ObjectType()],A),t.KerberosMethod=A,function(e){e.OPTIONAL="OPTIONAL",e.REQUIRED="REQUIRED",e.DISABLED="DISABLED"}(T=t.TLSLevel||(t.TLSLevel={})),r.registerEnumType(T,{name:"TLSLevel"});let c=class{};o([r.Field(),i("design:type",Boolean)],c.prototype,"enabled",void 0),o([r.Field(),i("design:type",String)],c.prototype,"host",void 0),o([r.Field(),i("design:type",Number)],c.prototype,"port",void 0),o([r.Field(e=>T),i("design:type",String)],c.prototype,"tlsLevel",void 0),o([r.Field({nullable:!0}),i("design:type",String)],c.prototype,"username",void 0),o([r.Field({nullable:!0}),i("design:type",String)],c.prototype,"password",void 0),o([r.Field(),i("design:type",String)],c.prototype,"url",void 0),c=o([r.ObjectType()],c),t.BoltConfiguration=c;let y=class{};o([r.Field(),i("design:type",Boolean)],y.prototype,"enabled",void 0),o([r.Field(),i("design:type",String)],y.prototype,"host",void 0),o([r.Field(),i("design:type",Number)],y.prototype,"port",void 0),o([r.Field(),i("design:type",String)],y.prototype,"url",void 0),y=o([r.ObjectType()],y),t.HTTPConfiguration=y;let S=class{};o([r.Field(),i("design:type",c)],S.prototype,"bolt",void 0),o([r.Field(),i("design:type",y)],S.prototype,"http",void 0),o([r.Field(),i("design:type",y)],S.prototype,"https",void 0),S=o([r.ObjectType()],S),t.GraphProtocolConfiguration=S;let g=class{};o([r.Field(),i("design:type",String)],g.prototype,"path",void 0),o([r.Field(),i("design:type",S)],g.prototype,"protocols",void 0),o([r.Field({nullable:!0}),i("design:type",A)],g.prototype,"authenticationMethods",void 0),g=o([r.ObjectType()],g),t.GraphLocalConnectionConfiguration=g;let N=class{};var u;o([r.Field(),i("design:type",String)],N.prototype,"type",void 0),o([r.Field(),i("design:type",String)],N.prototype,"databaseType",void 0),o([r.Field(e=>d),i("design:type",String)],N.prototype,"databaseStatus",void 0),o([r.Field(),i("design:type",l)],N.prototype,"info",void 0),o([r.Field(),i("design:type",g)],N.prototype,"configuration",void 0),N=o([r.ObjectType()],N),t.GraphLocalConnection=N,function(e){e.UNKNOWN="UNKNOWN",e.NEW="NEW",e.CREATING="CREATING",e.REMOVING="REMOVING",e.ACTIVATING="ACTIVATING",e.AVAILABLE="AVAILABLE",e.UPDATING="UPDATING",e.NOT_AVAILABLE="NOT_AVAILABLE",e.INVALID_PASSWORD="INVALID_PASSWORD",e.DEACTIVATING="DEACTIVATING",e.DEACTIVATED="DEACTIVATED"}(u=t.GraphRemoteConnectionStatus||(t.GraphRemoteConnectionStatus={})),r.registerEnumType(u,{name:"GraphRemoteConnectionStatus"});let I=class{};o([r.Field(),i("design:type",S)],I.prototype,"protocols",void 0),o([r.Field({nullable:!0}),i("design:type",A)],I.prototype,"authenticationMethods",void 0),I=o([r.ObjectType()],I),t.GraphRemoteConnectionProtocols=I;let O=class{};o([r.Field(),i("design:type",String)],O.prototype,"type",void 0),o([r.Field(),i("design:type",String)],O.prototype,"databaseType",void 0),o([r.Field(e=>u),i("design:type",String)],O.prototype,"databaseStatus",void 0),o([r.Field(),i("design:type",l)],O.prototype,"info",void 0),o([r.Field(),i("design:type",I)],O.prototype,"configuration",void 0),O=o([r.ObjectType()],O),t.GraphRemoteConnection=O,t.GraphConnection=r.createUnionType({name:"GraphConnection",types:[N,O]});let C=class{};o([r.Field(),i("design:type",String)],C.prototype,"id",void 0),o([r.Field(),i("design:type",String)],C.prototype,"name",void 0),o([r.Field(),i("design:type",String)],C.prototype,"description",void 0),o([r.Field(e=>s),i("design:type",String)],C.prototype,"status",void 0),o([r.Field(e=>t.GraphConnection),i("design:type",Object)],C.prototype,"connection",void 0),C=o([r.ObjectType()],C),t.Graph=C;let D=class{};o([r.Field(),i("design:type",String)],D.prototype,"id",void 0),o([r.Field(),i("design:type",String)],D.prototype,"name",void 0),o([r.Field(e=>[C]),i("design:type",Array)],D.prototype,"graphs",void 0),D=o([r.ObjectType()],D),t.Project=D;let R=class{};o([r.Field(),i("design:type",String)],R.prototype,"featureName",void 0),o([r.Field(),i("design:type",String)],R.prototype,"expirationDate",void 0),o([r.Field(),i("design:type",String)],R.prototype,"activationVersion",void 0),o([r.Field(),i("design:type",String)],R.prototype,"featureVersion",void 0),o([r.Field(),i("design:type",String)],R.prototype,"registrant",void 0),o([r.Field(),i("design:type",String)],R.prototype,"organization",void 0),o([r.Field(),i("design:type",String)],R.prototype,"email",void 0),o([r.Field(),i("design:type",String)],R.prototype,"signature",void 0),R=o([r.ObjectType()],R),t.ActivationKey=R;let _=class{};o([r.Field(e=>[R]),i("design:type",Array)],_.prototype,"activationKeys",void 0),o([r.Field(),i("design:type",a)],_.prototype,"general",void 0),o([r.Field(e=>[D]),i("design:type",Array)],_.prototype,"projects",void 0),_=o([r.ObjectType()],_),t.Workspace=_},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});const i=n(0);t.getSchema=(async()=>{const e=n(3);return Promise.resolve(e)});t.buildSchema=(async e=>i.buildSchema(e)),o(n(1)),o(n(4))},function(e,t){e.exports="# -----------------------------------------------\n# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!\n# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!\n# -----------------------------------------------\n\ntype ActivationKey {\n featureName: String!\n expirationDate: String!\n activationVersion: String!\n featureVersion: String!\n registrant: String!\n organization: String!\n email: String!\n signature: String!\n}\n\ntype BoltConfiguration {\n enabled: Boolean!\n host: String!\n port: Float!\n tlsLevel: TLSLevel!\n username: String\n password: String\n url: String!\n}\n\ntype Enabled {\n enabled: Boolean!\n}\n\ntype General {\n online: Boolean!\n settings: Settings!\n}\n\ntype Graph {\n id: String!\n name: String!\n description: String!\n status: GraphStatus!\n connection: GraphConnection!\n}\n\nunion GraphConnection = GraphLocalConnection | GraphRemoteConnection\n\ntype GraphInfo {\n version: String!\n edition: String!\n}\n\ntype GraphLocalConnection {\n type: String!\n databaseType: String!\n databaseStatus: GraphLocalConnectionStatus!\n info: GraphInfo!\n configuration: GraphLocalConnectionConfiguration!\n}\n\ntype GraphLocalConnectionConfiguration {\n path: String!\n protocols: GraphProtocolConfiguration!\n authenticationMethods: KerberosMethod\n}\n\nenum GraphLocalConnectionStatus {\n STOPPED\n STOPPING\n STARTING\n RESTARTING\n RUNNING\n UNKNOWN\n NEW\n CREATING\n REMOVING\n UPGRADING\n MISSING\n}\n\ntype GraphProtocolConfiguration {\n bolt: BoltConfiguration!\n http: HTTPConfiguration!\n https: HTTPConfiguration!\n}\n\ntype GraphRemoteConnection {\n type: String!\n databaseType: String!\n databaseStatus: GraphRemoteConnectionStatus!\n info: GraphInfo!\n configuration: GraphRemoteConnectionProtocols!\n}\n\ntype GraphRemoteConnectionProtocols {\n protocols: GraphProtocolConfiguration!\n authenticationMethods: KerberosMethod\n}\n\nenum GraphRemoteConnectionStatus {\n UNKNOWN\n NEW\n CREATING\n REMOVING\n ACTIVATING\n AVAILABLE\n UPDATING\n NOT_AVAILABLE\n INVALID_PASSWORD\n DEACTIVATING\n DEACTIVATED\n}\n\nenum GraphStatus {\n ACTIVE\n INACTIVE\n}\n\ntype HTTPConfiguration {\n enabled: Boolean!\n host: String!\n port: Float!\n url: String!\n}\n\ntype KerberosMethod {\n kerberos: Enabled!\n servicePrincipal: String\n}\n\ntype Project {\n id: String!\n name: String!\n graphs: [Graph!]!\n}\n\ntype Query {\n getWorkspace: Workspace!\n}\n\ntype Settings {\n allowSendReports: Boolean!\n allowSendStats: Boolean!\n allowStoreCredentials: Boolean!\n}\n\ntype Subscription {\n onWorkspaceChange: Workspace!\n}\n\nenum TLSLevel {\n OPTIONAL\n REQUIRED\n DISABLED\n}\n\ntype Workspace {\n activationKeys: [ActivationKey!]!\n general: General!\n projects: [Project!]!\n}\n"},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,p=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(p=(r<3?i(p):r>3?i(t,n,p):i(t,n))||p);return r>3&&p&&Object.defineProperty(t,n,p),p},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});const p=n(0),a=n(1),s=n(5);t.createResolver=function(e){let t=class{getWorkspace(t){return e.getWorkspace(t)}onWorkspaceChange(t,n){return e.onWorkspaceChange(t,n)}};return o([p.Query(e=>a.Workspace),r(0,p.Ctx()),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],t.prototype,"getWorkspace",null),o([p.Subscription(e=>a.Workspace,{topics:s.WorkspaceUpdateTopics}),r(0,p.Ctx()),r(1,p.Root()),i("design:type",Function),i("design:paramtypes",[Object,a.Workspace]),i("design:returntype",Promise)],t.prototype,"onWorkspaceChange",null),t=o([p.Resolver(a.Workspace)],t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APPLICATION_ONLINE="APPLICATION_ONLINE",t.APPLICATION_OFFLINE="APPLICATION_OFFLINE",t.APPLICATION_SETTINGS_SAVED="APPLICATION_SETTINGS_SAVED",t.DATABASE_CREATED="DATABASE_CREATED",t.DATABASE_STARTED="DATABASE_STARTED",t.DATABASE_STOPPED="DATABASE_STOPPED",t.DATABASE_SETTINGS_SAVED="DATABASE_SETTINGS_SAVED",t.DATABASE_RENAMED="DATABASE_RENAMED",t.DATABASE_REMOVED="DATABASE_REMOVED",t.DATABASE_UPDATED="DATABASE_UPDATED",t.DATABASE_UPGRADED="DATABASE_UPGRADED",t.REMOTE_CONNECTION_CREATED="REMOTE_CONNECTION_CREATED",t.REMOTE_CONNECTION_REMOVED="REMOTE_CONNECTION_REMOVED",t.REMOTE_CONNECTION_ACTIVATED="REMOTE_CONNECTION_ACTIVATED",t.REMOTE_CONNECTION_DEACTIVATED="REMOTE_CONNECTION_DEACTIVATED",t.REMOTE_CONNECTION_UPDATED="REMOTE_CONNECTION_UPDATED",t.PROJECT_CREATED="PROJECT_CREATED",t.PROJECT_REMOVED="PROJECT_REMOVED",t.PROJECT_RENAMED="PROJECT_RENAMED",t.GRAPH_ACTIVE="GRAPH_ACTIVE",t.GRAPH_INACTIVE="GRAPH_INACTIVE",t.DATABASE_CHANGING_ACTIONS=[t.DATABASE_CREATED,t.DATABASE_STARTED,t.DATABASE_STOPPED,t.DATABASE_RENAMED,t.DATABASE_REMOVED,t.DATABASE_UPDATED,t.DATABASE_UPGRADED,t.DATABASE_SETTINGS_SAVED,t.REMOTE_CONNECTION_CREATED,t.REMOTE_CONNECTION_REMOVED,t.REMOTE_CONNECTION_UPDATED,t.REMOTE_CONNECTION_ACTIVATED,t.REMOTE_CONNECTION_DEACTIVATED],t.PROJECT_CHANGING_ACTIONS=[t.PROJECT_CREATED,t.PROJECT_REMOVED,t.PROJECT_RENAMED],t.WorkspaceUpdateTopics=[t.APPLICATION_SETTINGS_SAVED,t.GRAPH_ACTIVE,t.GRAPH_INACTIVE,t.APPLICATION_ONLINE,t.APPLICATION_OFFLINE,...t.PROJECT_CHANGING_ACTIONS,...t.DATABASE_CHANGING_ACTIONS]}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("relate-api",[],t):"object"==typeof exports?exports["relate-api"]=t():e["relate-api"]=t()}(global,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=require("type-graphql")},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,p=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(p=(r<3?i(p):r>3?i(t,n,p):i(t,n))||p);return r>3&&p&&Object.defineProperty(t,n,p),p},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);let p=class{};o([r.Field(),i("design:type",Boolean)],p.prototype,"allowSendReports",void 0),o([r.Field(),i("design:type",Boolean)],p.prototype,"allowSendStats",void 0),o([r.Field(),i("design:type",Boolean)],p.prototype,"allowStoreCredentials",void 0),p=o([r.ObjectType()],p);let s=class{};var a,d;o([r.Field(),i("design:type",Boolean)],s.prototype,"publicInternetAccess",void 0),o([r.Field(),i("design:type",p)],s.prototype,"settings",void 0),s=o([r.ObjectType()],s),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(a=t.GraphStatus||(t.GraphStatus={})),r.registerEnumType(a,{name:"GraphStatus"}),function(e){e.STOPPED="STOPPED",e.STOPPING="STOPPING",e.STARTING="STARTING",e.RESTARTING="RESTARTING",e.RUNNING="RUNNING",e.UNKNOWN="UNKNOWN",e.NEW="NEW",e.CREATING="CREATING",e.REMOVING="REMOVING",e.UPGRADING="UPGRADING",e.MISSING="MISSING",e.ACTIVATING="ACTIVATING",e.AVAILABLE="AVAILABLE",e.UPDATING="UPDATING",e.NOT_AVAILABLE="NOT_AVAILABLE",e.INVALID_PASSWORD="INVALID_PASSWORD",e.DEACTIVATING="DEACTIVATING",e.DEACTIVATED="DEACTIVATED"}(d=t.GraphConnectionStatus||(t.GraphConnectionStatus={})),r.registerEnumType(d,{name:"GraphConnectionStatus"});let l=class{};o([r.Field(),i("design:type",String)],l.prototype,"version",void 0),o([r.Field(),i("design:type",String)],l.prototype,"edition",void 0),l=o([r.ObjectType()],l),t.GraphInfo=l;let A=class{};o([r.Field(),i("design:type",Boolean)],A.prototype,"enabled",void 0),A=o([r.ObjectType()],A),t.Enabled=A;let y=class{};var c;o([r.Field(),i("design:type",A)],y.prototype,"kerberos",void 0),o([r.Field({nullable:!0}),i("design:type",String)],y.prototype,"servicePrincipal",void 0),y=o([r.ObjectType()],y),t.KerberosMethod=y,function(e){e.OPTIONAL="OPTIONAL",e.REQUIRED="REQUIRED",e.DISABLED="DISABLED"}(c=t.TLSLevel||(t.TLSLevel={})),r.registerEnumType(c,{name:"TLSLevel"});let T=class{};o([r.Field(),i("design:type",Boolean)],T.prototype,"enabled",void 0),o([r.Field(),i("design:type",String)],T.prototype,"host",void 0),o([r.Field(),i("design:type",Number)],T.prototype,"port",void 0),o([r.Field(e=>c),i("design:type",String)],T.prototype,"tlsLevel",void 0),o([r.Field({nullable:!0}),i("design:type",String)],T.prototype,"username",void 0),o([r.Field({nullable:!0}),i("design:type",String)],T.prototype,"password",void 0),o([r.Field(),i("design:type",String)],T.prototype,"url",void 0),T=o([r.ObjectType()],T),t.BoltPrincipals=T;let E=class{};o([r.Field(),i("design:type",Boolean)],E.prototype,"enabled",void 0),o([r.Field(),i("design:type",String)],E.prototype,"host",void 0),o([r.Field(),i("design:type",Number)],E.prototype,"port",void 0),o([r.Field(),i("design:type",String)],E.prototype,"url",void 0),E=o([r.ObjectType()],E),t.HTTPPrincipals=E;let g=class{};o([r.Field(),i("design:type",T)],g.prototype,"bolt",void 0),o([r.Field(),i("design:type",E)],g.prototype,"http",void 0),o([r.Field(),i("design:type",E)],g.prototype,"https",void 0),g=o([r.ObjectType()],g),t.GraphProtocolPrincipals=g;let S=class{};o([r.Field(),i("design:type",String)],S.prototype,"path",void 0),o([r.Field(),i("design:type",g)],S.prototype,"protocols",void 0),o([r.Field({nullable:!0}),i("design:type",y)],S.prototype,"authenticationMethods",void 0),S=o([r.ObjectType()],S),t.GraphConnectionPrincipals=S;let I=class{};o([r.Field(),i("design:type",String)],I.prototype,"type",void 0),o([r.Field(),i("design:type",String)],I.prototype,"databaseType",void 0),o([r.Field(e=>d),i("design:type",String)],I.prototype,"databaseStatus",void 0),o([r.Field(),i("design:type",l)],I.prototype,"info",void 0),o([r.Field(),i("design:type",S)],I.prototype,"principals",void 0),I=o([r.ObjectType()],I),t.GraphConnection=I;let u=class{};o([r.Field(e=>r.ID),i("design:type",String)],u.prototype,"id",void 0),o([r.Field(),i("design:type",String)],u.prototype,"name",void 0),o([r.Field(e=>r.Int),i("design:type",Number)],u.prototype,"size",void 0),o([r.Field(),i("design:type",String)],u.prototype,"url",void 0),o([r.Field(),i("design:type",String)],u.prototype,"contentType",void 0),u=o([r.ObjectType()],u),t.File=u;let N=class{};o([r.Field(),i("design:type",String)],N.prototype,"id",void 0),o([r.Field(),i("design:type",String)],N.prototype,"publisher",void 0),o([r.Field(),i("design:type",String)],N.prototype,"name",void 0),o([r.Field(),i("design:type",String)],N.prototype,"version",void 0),N=o([r.ObjectType()],N),t.GraphApp=N;let O=class{};o([r.Field(),i("design:type",String)],O.prototype,"id",void 0),o([r.Field(),i("design:type",String)],O.prototype,"name",void 0),o([r.Field(),i("design:type",String)],O.prototype,"version",void 0),O=o([r.ObjectType()],O),t.Plugin=O;let P=class{};o([r.Field(e=>r.ID),i("design:type",String)],P.prototype,"id",void 0),o([r.Field(),i("design:type",String)],P.prototype,"name",void 0),o([r.Field(),i("design:type",String)],P.prototype,"description",void 0),o([r.Field(e=>a),i("design:type",String)],P.prototype,"status",void 0),o([r.Field(e=>I),i("design:type",I)],P.prototype,"connection",void 0),o([r.Field(e=>[O]),i("design:type",Array)],P.prototype,"plugins",void 0),P=o([r.ObjectType()],P),t.Graph=P;let D=class{};o([r.Field(e=>r.ID),i("design:type",String)],D.prototype,"id",void 0),o([r.Field(e=>[P]),i("design:type",Array)],D.prototype,"graphs",void 0),D=o([r.ObjectType()],D),t.GraphDatabase=D;let _=class{};o([r.Field(e=>r.ID),i("design:type",String)],_.prototype,"id",void 0),o([r.Field(),i("design:type",String)],_.prototype,"name",void 0),o([r.Field(e=>[P]),i("design:type",Array)],_.prototype,"graphs",void 0),o([r.Field(e=>[N]),i("design:type",Array)],_.prototype,"apps",void 0),o([r.Field(e=>[u]),i("design:type",Array)],_.prototype,"files",void 0),_=o([r.ObjectType()],_),t.Project=_;let C=class{};o([r.Field(),i("design:type",String)],C.prototype,"publisher",void 0),o([r.Field(),i("design:type",String)],C.prototype,"featureName",void 0),o([r.Field(),i("design:type",String)],C.prototype,"expirationDate",void 0),o([r.Field(),i("design:type",String)],C.prototype,"featureVersion",void 0),o([r.Field(),i("design:type",String)],C.prototype,"registrant",void 0),o([r.Field(),i("design:type",String)],C.prototype,"organization",void 0),o([r.Field(),i("design:type",String)],C.prototype,"email",void 0),o([r.Field(),i("design:type",String)],C.prototype,"signature",void 0),C=o([r.ObjectType()],C),t.ActivationKey=C;let R=class{};o([r.Field(e=>[C]),i("design:type",Array)],R.prototype,"activationKeys",void 0),o([r.Field(),i("design:type",String)],R.prototype,"name",void 0),R=o([r.ObjectType()],R),t.UserAccount=R;let v=class{};o([r.Field(),i("design:type",R)],v.prototype,"me",void 0),o([r.Field(),i("design:type",s)],v.prototype,"host",void 0),o([r.Field(e=>[_]),i("design:type",Array)],v.prototype,"projects",void 0),v=o([r.ObjectType()],v),t.Workspace=v;let f=class{};o([r.Field(e=>[P]),i("design:type",Array)],f.prototype,"graphs",void 0),o([r.Field(e=>[N]),i("design:type",Array)],f.prototype,"apps",void 0),f=o([r.ObjectType()],f),t.PlatformWorkspace=f},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});const i=n(0);t.getSchema=(async()=>{const e=n(3);return Promise.resolve(e)});t.buildSchema=(async e=>i.buildSchema(e)),o(n(1)),o(n(4))},function(e,t){e.exports="# -----------------------------------------------\n# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!\n# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!\n# -----------------------------------------------\n\ntype ActivationKey {\n publisher: String!\n featureName: String!\n expirationDate: String!\n featureVersion: String!\n registrant: String!\n organization: String!\n email: String!\n signature: String!\n}\n\ntype BoltPrincipals {\n enabled: Boolean!\n host: String!\n port: Float!\n tlsLevel: TLSLevel!\n username: String\n password: String\n url: String!\n}\n\ntype Enabled {\n enabled: Boolean!\n}\n\ntype File {\n id: ID!\n name: String!\n size: Int!\n url: String!\n contentType: String!\n}\n\ntype Graph {\n id: ID!\n name: String!\n description: String!\n status: GraphStatus!\n connection: GraphConnection!\n plugins: [Plugin!]!\n}\n\ntype GraphApp {\n id: String!\n publisher: String!\n name: String!\n version: String!\n}\n\ntype GraphConnection {\n type: String!\n databaseType: String!\n databaseStatus: GraphConnectionStatus!\n info: GraphInfo!\n principals: GraphConnectionPrincipals!\n}\n\ntype GraphConnectionPrincipals {\n path: String!\n protocols: GraphProtocolPrincipals!\n authenticationMethods: KerberosMethod\n}\n\nenum GraphConnectionStatus {\n STOPPED\n STOPPING\n STARTING\n RESTARTING\n RUNNING\n UNKNOWN\n NEW\n CREATING\n REMOVING\n UPGRADING\n MISSING\n ACTIVATING\n AVAILABLE\n UPDATING\n NOT_AVAILABLE\n INVALID_PASSWORD\n DEACTIVATING\n DEACTIVATED\n}\n\ntype GraphDatabase {\n id: ID!\n graphs: [Graph!]!\n}\n\ntype GraphInfo {\n version: String!\n edition: String!\n}\n\ntype GraphProtocolPrincipals {\n bolt: BoltPrincipals!\n http: HTTPPrincipals!\n https: HTTPPrincipals!\n}\n\nenum GraphStatus {\n ACTIVE\n INACTIVE\n}\n\ntype HostEnvironment {\n publicInternetAccess: Boolean!\n settings: HostSettings!\n}\n\ntype HostSettings {\n allowSendReports: Boolean!\n allowSendStats: Boolean!\n allowStoreCredentials: Boolean!\n}\n\ntype HTTPPrincipals {\n enabled: Boolean!\n host: String!\n port: Float!\n url: String!\n}\n\ntype KerberosMethod {\n kerberos: Enabled!\n servicePrincipal: String\n}\n\ntype PlatformWorkspace {\n graphs: [Graph!]!\n apps: [GraphApp!]!\n}\n\ntype Plugin {\n id: String!\n name: String!\n version: String!\n}\n\ntype Project {\n id: ID!\n name: String!\n graphs: [Graph!]!\n apps: [GraphApp!]!\n files: [File!]!\n}\n\ntype Query {\n workspace: Workspace!\n platformWorkspace: PlatformWorkspace!\n}\n\ntype Subscription {\n onWorkspaceChange: Workspace!\n onPlatformWorkspaceChange: PlatformWorkspace!\n}\n\nenum TLSLevel {\n OPTIONAL\n REQUIRED\n DISABLED\n}\n\ntype UserAccount {\n activationKeys: [ActivationKey!]!\n name: String!\n}\n\ntype Workspace {\n me: UserAccount!\n host: HostEnvironment!\n projects: [Project!]!\n}\n"},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,p=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(p=(r<3?i(p):r>3?i(t,n,p):i(t,n))||p);return r>3&&p&&Object.defineProperty(t,n,p),p},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});const p=n(0),s=n(1),a=n(5);t.createResolver=function(e){let t=class{workspace(t){return e.workspace(t)}platformWorkspace(t){return e.platformWorkspace(t)}onWorkspaceChange(t,n){return e.onWorkspaceChange(t,n)}onPlatformWorkspaceChange(t,n){return e.onPlatformWorkspaceChange(t,n)}};return o([p.Query(e=>s.Workspace),r(0,p.Ctx()),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],t.prototype,"workspace",null),o([p.Query(e=>s.PlatformWorkspace),r(0,p.Ctx()),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],t.prototype,"platformWorkspace",null),o([p.Subscription(e=>s.Workspace,{topics:a.WorkspaceUpdateTopics}),r(0,p.Ctx()),r(1,p.Root()),i("design:type",Function),i("design:paramtypes",[Object,s.Workspace]),i("design:returntype",Promise)],t.prototype,"onWorkspaceChange",null),o([p.Subscription(e=>s.PlatformWorkspace,{topics:a.PlatformWorkspaceUpdateTopics}),r(0,p.Ctx()),r(1,p.Root()),i("design:type",Function),i("design:paramtypes",[Object,s.PlatformWorkspace]),i("design:returntype",Promise)],t.prototype,"onPlatformWorkspaceChange",null),t=o([p.Resolver(s.Workspace)],t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APPLICATION_ONLINE="APPLICATION_ONLINE",t.APPLICATION_OFFLINE="APPLICATION_OFFLINE",t.APPLICATION_SETTINGS_SAVED="APPLICATION_SETTINGS_SAVED",t.DATABASE_CREATED="DATABASE_CREATED",t.DATABASE_STARTED="DATABASE_STARTED",t.DATABASE_STOPPED="DATABASE_STOPPED",t.DATABASE_SETTINGS_SAVED="DATABASE_SETTINGS_SAVED",t.DATABASE_RENAMED="DATABASE_RENAMED",t.DATABASE_REMOVED="DATABASE_REMOVED",t.DATABASE_UPDATED="DATABASE_UPDATED",t.DATABASE_UPGRADED="DATABASE_UPGRADED",t.REMOTE_CONNECTION_CREATED="REMOTE_CONNECTION_CREATED",t.REMOTE_CONNECTION_REMOVED="REMOTE_CONNECTION_REMOVED",t.REMOTE_CONNECTION_ACTIVATED="REMOTE_CONNECTION_ACTIVATED",t.REMOTE_CONNECTION_DEACTIVATED="REMOTE_CONNECTION_DEACTIVATED",t.REMOTE_CONNECTION_UPDATED="REMOTE_CONNECTION_UPDATED",t.PROJECT_CREATED="PROJECT_CREATED",t.PROJECT_REMOVED="PROJECT_REMOVED",t.PROJECT_RENAMED="PROJECT_RENAMED",t.GRAPH_ACTIVE="GRAPH_ACTIVE",t.GRAPH_INACTIVE="GRAPH_INACTIVE",t.PLATFORM_GRAPH_ACTIVE="PLATFORM_GRAPH_ACTIVE",t.PLATFORM_GRAPH_INACTIVE="PLATFORM_GRAPH_INACTIVE",t.DATABASE_CHANGING_ACTIONS=[t.DATABASE_CREATED,t.DATABASE_STARTED,t.DATABASE_STOPPED,t.DATABASE_RENAMED,t.DATABASE_REMOVED,t.DATABASE_UPDATED,t.DATABASE_UPGRADED,t.DATABASE_SETTINGS_SAVED,t.REMOTE_CONNECTION_CREATED,t.REMOTE_CONNECTION_REMOVED,t.REMOTE_CONNECTION_UPDATED,t.REMOTE_CONNECTION_ACTIVATED,t.REMOTE_CONNECTION_DEACTIVATED],t.PROJECT_CHANGING_ACTIONS=[t.PROJECT_CREATED,t.PROJECT_REMOVED,t.PROJECT_RENAMED],t.WorkspaceUpdateTopics=[t.APPLICATION_SETTINGS_SAVED,t.GRAPH_ACTIVE,t.GRAPH_INACTIVE,t.APPLICATION_ONLINE,t.APPLICATION_OFFLINE,...t.PROJECT_CHANGING_ACTIONS,...t.DATABASE_CHANGING_ACTIONS],t.PlatformWorkspaceUpdateTopics=[t.PLATFORM_GRAPH_ACTIVE,t.PLATFORM_GRAPH_INACTIVE]}])});
{
"name": "@neo4j/relate-api",
"version": "0.3.1",
"version": "0.4.0",
"main": "dist/index.js",

@@ -25,3 +25,6 @@ "types": "dist/index.d.ts",

"graphql-yoga": "^1.16.7",
"husky": "^1.3.1",
"lint-staged": "^8.1.0",
"nodemon": "1.18.7",
"prettier": "^1.15.3",
"raw-loader": "^0.5.1",

@@ -36,2 +39,12 @@ "terser-webpack-plugin": "^1.1.0",

},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --parser typescript --single-quote --write",
"git add"
],
"*.{js,jsx,json,css,scss,md}": [
"prettier --write",
"git add"
]
},
"repository": {

@@ -38,0 +51,0 @@ "type": "git",

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