@neo4j/relate-api
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -13,3 +13,3 @@ // Generated by dts-bundle v0.7.3 | ||
const buildSchema: (options: BuildSchemaOptions) => Promise<GraphQLSchema>; | ||
export { getSchema, buildSchema, }; | ||
export { getSchema, buildSchema }; | ||
@@ -122,10 +122,2 @@ class HostSettings { | ||
} | ||
export class Graph { | ||
id: string; | ||
name: string; | ||
description: string; | ||
status: GraphStatus; | ||
connection: GraphConnection; | ||
plugins: Plugin[]; | ||
} | ||
export class GraphDatabase { | ||
@@ -135,9 +127,2 @@ id: string; | ||
} | ||
export class Project { | ||
id: string; | ||
name: string; | ||
graphs: Graph[]; | ||
apps: GraphApp[]; | ||
files: File[]; | ||
} | ||
export class ActivationKey { | ||
@@ -177,1 +162,29 @@ publisher: string; | ||
export function createProjectResolver(api: ProjectResolverAPI<any>): any; | ||
export interface ProjectResolverAPI<TContext> { | ||
graphs(context: TContext, project: Project): Promise<Graph[]>; | ||
} | ||
export function createGraphResolver(api: GraphResolverAPI<any>): any; | ||
export interface GraphResolverAPI<TContext> { | ||
projects(context: TContext, Graph: Graph): Promise<Project[] | null>; | ||
} | ||
export class Graph { | ||
id: string; | ||
name: string; | ||
description: string; | ||
status: GraphStatus; | ||
connection: GraphConnection; | ||
plugins: Plugin[]; | ||
projects: Project[]; | ||
} | ||
export class Project { | ||
id: string; | ||
name: string; | ||
graphs: Graph[]; | ||
apps: GraphApp[]; | ||
files: File[]; | ||
} | ||
@@ -94,3 +94,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 2); | ||
/******/ return __webpack_require__(__webpack_require__.s = 4); | ||
/******/ }) | ||
@@ -121,3 +121,5 @@ /************************************************************************/ | ||
const type_graphql_1 = __webpack_require__(0); | ||
const stream_1 = __webpack_require__(4); | ||
const stream_1 = __webpack_require__(6); | ||
const Graph_type_1 = __webpack_require__(2); | ||
const Project_type_1 = __webpack_require__(3); | ||
let HostSettings = class HostSettings { | ||
@@ -274,3 +276,3 @@ }; | ||
__decorate([ | ||
type_graphql_1.Field(), | ||
type_graphql_1.Field({ nullable: true }), | ||
__metadata("design:type", Boolean) | ||
@@ -440,32 +442,2 @@ ], HTTPPrincipals.prototype, "enabled", void 0); | ||
exports.Plugin = Plugin; | ||
let Graph = class Graph { | ||
}; | ||
__decorate([ | ||
type_graphql_1.Field(type => type_graphql_1.ID), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "id", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "name", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "description", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => GraphStatus), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "status", void 0); | ||
__decorate([ | ||
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([ | ||
type_graphql_1.ObjectType() | ||
], Graph); | ||
exports.Graph = Graph; | ||
let GraphDatabase = class GraphDatabase { | ||
@@ -478,3 +450,3 @@ }; | ||
__decorate([ | ||
type_graphql_1.Field(_ => [Graph]), | ||
type_graphql_1.Field(_ => [Graph_type_1.Graph]), | ||
__metadata("design:type", Array) | ||
@@ -486,28 +458,2 @@ ], GraphDatabase.prototype, "graphs", void 0); | ||
exports.GraphDatabase = GraphDatabase; | ||
let Project = class Project { | ||
}; | ||
__decorate([ | ||
type_graphql_1.Field(type => type_graphql_1.ID), | ||
__metadata("design:type", String) | ||
], Project.prototype, "id", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(), | ||
__metadata("design:type", String) | ||
], Project.prototype, "name", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => [Graph]), | ||
__metadata("design:type", Array) | ||
], 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([ | ||
type_graphql_1.ObjectType() | ||
], Project); | ||
exports.Project = Project; | ||
let ActivationKey = class ActivationKey { | ||
@@ -576,3 +522,3 @@ }; | ||
__decorate([ | ||
type_graphql_1.Field(_ => [Project]), | ||
type_graphql_1.Field(_ => [Project_type_1.Project]), | ||
__metadata("design:type", Array) | ||
@@ -587,3 +533,3 @@ ], Workspace.prototype, "projects", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => [Graph]), | ||
type_graphql_1.Field(_ => [Graph_type_1.Graph]), | ||
__metadata("design:type", Array) | ||
@@ -607,2 +553,102 @@ ], PlatformWorkspace.prototype, "graphs", void 0); | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const type_graphql_1 = __webpack_require__(0); | ||
const types_1 = __webpack_require__(1); | ||
let Graph = class Graph { | ||
}; | ||
__decorate([ | ||
type_graphql_1.Field(type => type_graphql_1.ID), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "id", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "name", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "description", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => types_1.GraphStatus), | ||
__metadata("design:type", String) | ||
], Graph.prototype, "status", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => types_1.GraphConnection), | ||
__metadata("design:type", types_1.GraphConnection) | ||
], Graph.prototype, "connection", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => [types_1.Plugin]), | ||
__metadata("design:type", Array) | ||
], Graph.prototype, "plugins", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => [__webpack_require__(3).Project], { nullable: true }), | ||
__metadata("design:type", Array) | ||
], Graph.prototype, "projects", void 0); | ||
Graph = __decorate([ | ||
type_graphql_1.ObjectType() | ||
], Graph); | ||
exports.Graph = Graph; | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const type_graphql_1 = __webpack_require__(0); | ||
const types_1 = __webpack_require__(1); | ||
let Project = class Project { | ||
}; | ||
__decorate([ | ||
type_graphql_1.Field(type => type_graphql_1.ID), | ||
__metadata("design:type", String) | ||
], Project.prototype, "id", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(), | ||
__metadata("design:type", String) | ||
], Project.prototype, "name", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => [__webpack_require__(2).Graph]), | ||
__metadata("design:type", Array) | ||
], Project.prototype, "graphs", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => [types_1.GraphApp]), | ||
__metadata("design:type", Array) | ||
], Project.prototype, "apps", void 0); | ||
__decorate([ | ||
type_graphql_1.Field(_ => [types_1.File]), | ||
__metadata("design:type", Array) | ||
], Project.prototype, "files", void 0); | ||
Project = __decorate([ | ||
type_graphql_1.ObjectType() | ||
], Project); | ||
exports.Project = Project; | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function __export(m) { | ||
@@ -614,3 +660,3 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
const getSchema = async () => { | ||
const schema = __webpack_require__(3); | ||
const schema = __webpack_require__(5); | ||
return Promise.resolve(schema); | ||
@@ -624,13 +670,15 @@ }; | ||
__export(__webpack_require__(1)); | ||
__export(__webpack_require__(5)); | ||
__export(__webpack_require__(7)); | ||
__export(__webpack_require__(10)); | ||
__export(__webpack_require__(11)); | ||
/***/ }), | ||
/* 3 */ | ||
/* 5 */ | ||
/***/ (function(module, exports) { | ||
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 filename: String!\n size: Int!\n path: 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 prefersColorScheme: String!\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 Mutation {\n uploadFile(file: Upload!): Boolean!\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\n# The `Upload` scalar type represents a file upload.\nscalar Upload\n\ntype UserAccount {\n activationKeys: [ActivationKey!]!\n name: String!\n}\n\ntype Workspace {\n me: UserAccount!\n host: HostEnvironment!\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 filename: String!\n size: Int!\n path: 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 projects: [Project!]\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 prefersColorScheme: String!\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 Mutation {\n uploadFile(file: Upload!): Boolean!\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\n# The `Upload` scalar type represents a file upload.\nscalar Upload\n\ntype UserAccount {\n activationKeys: [ActivationKey!]!\n name: String!\n}\n\ntype Workspace {\n me: UserAccount!\n host: HostEnvironment!\n projects: [Project!]!\n}\n" | ||
/***/ }), | ||
/* 4 */ | ||
/* 6 */ | ||
/***/ (function(module, exports) { | ||
@@ -641,3 +689,3 @@ | ||
/***/ }), | ||
/* 5 */ | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -662,5 +710,5 @@ | ||
const types_1 = __webpack_require__(1); | ||
const constants_1 = __webpack_require__(6); | ||
const constants_1 = __webpack_require__(8); | ||
// @ts-ignore | ||
const graphql_upload_1 = __webpack_require__(7); | ||
const graphql_upload_1 = __webpack_require__(9); | ||
function createResolver(api) { | ||
@@ -674,2 +722,16 @@ let WorkspacesResolver = class WorkspacesResolver { | ||
} | ||
// @FieldResolver(_ => Graph, { nullable: true }) | ||
// graphById( | ||
// @Ctx() context: TContext, | ||
// @Arg("id", () => ID) id: string | ||
// ): Promise<Graph | null> { | ||
// return api.graphById(context, id); | ||
// } | ||
// @FieldResolver(_ => Project, { nullable: true }) | ||
// projectById( | ||
// @Ctx() context: TContext, | ||
// @Arg("id", () => ID) id: string | ||
// ): Promise<Project | null> { | ||
// return api.projectById(context, id); | ||
// } | ||
uploadFile(context, file) { | ||
@@ -736,3 +798,3 @@ return api.uploadFile(context, file); | ||
/***/ }), | ||
/* 6 */ | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -826,3 +888,3 @@ | ||
/***/ }), | ||
/* 7 */ | ||
/* 9 */ | ||
/***/ (function(module, exports) { | ||
@@ -832,2 +894,90 @@ | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var __param = (this && this.__param) || function (paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const type_graphql_1 = __webpack_require__(0); | ||
const Project_type_1 = __webpack_require__(3); | ||
const Graph_type_1 = __webpack_require__(2); | ||
function createProjectResolver(api) { | ||
let ProjectResolver = class ProjectResolver { | ||
graphs(context, project) { | ||
return api.graphs(context, project); | ||
} | ||
}; | ||
__decorate([ | ||
type_graphql_1.FieldResolver(_ => Graph_type_1.Graph), | ||
__param(0, type_graphql_1.Ctx()), | ||
__param(1, type_graphql_1.Root()), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [Object, Project_type_1.Project]), | ||
__metadata("design:returntype", Promise) | ||
], ProjectResolver.prototype, "graphs", null); | ||
ProjectResolver = __decorate([ | ||
type_graphql_1.Resolver(of => Project_type_1.Project) | ||
], ProjectResolver); | ||
return ProjectResolver; | ||
} | ||
exports.createProjectResolver = createProjectResolver; | ||
/***/ }), | ||
/* 11 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var __param = (this && this.__param) || function (paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const type_graphql_1 = __webpack_require__(0); | ||
const Graph_type_1 = __webpack_require__(2); | ||
const Project_type_1 = __webpack_require__(3); | ||
function createGraphResolver(api) { | ||
let GraphResolver = class GraphResolver { | ||
projects(context, Graph) { | ||
return api.projects(context, Graph); | ||
} | ||
}; | ||
__decorate([ | ||
type_graphql_1.FieldResolver(_ => [Project_type_1.Project]), | ||
__param(0, type_graphql_1.Ctx()), | ||
__param(1, type_graphql_1.Root()), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [Object, Graph_type_1.Graph]), | ||
__metadata("design:returntype", Promise) | ||
], GraphResolver.prototype, "projects", null); | ||
GraphResolver = __decorate([ | ||
type_graphql_1.Resolver(of => Graph_type_1.Graph) | ||
], GraphResolver); | ||
return GraphResolver; | ||
} | ||
exports.createGraphResolver = createGraphResolver; | ||
/***/ }) | ||
@@ -834,0 +984,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),p=n(4);let a=class{};o([r.Field(),i("design:type",Boolean)],a.prototype,"allowSendReports",void 0),o([r.Field(),i("design:type",Boolean)],a.prototype,"allowSendStats",void 0),o([r.Field(),i("design:type",Boolean)],a.prototype,"allowStoreCredentials",void 0),a=o([r.ObjectType()],a);let s=class{};var l,d;o([r.Field(),i("design:type",Boolean)],s.prototype,"publicInternetAccess",void 0),o([r.Field(),i("design:type",a)],s.prototype,"settings",void 0),o([r.Field(),i("design:type",String)],s.prototype,"prefersColorScheme",void 0),s=o([r.ObjectType()],s),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(l=t.GraphStatus||(t.GraphStatus={})),r.registerEnumType(l,{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 A=class{};o([r.Field(),i("design:type",String)],A.prototype,"version",void 0),o([r.Field(),i("design:type",String)],A.prototype,"edition",void 0),A=o([r.ObjectType()],A),t.GraphInfo=A;let E=class{};o([r.Field(),i("design:type",Boolean)],E.prototype,"enabled",void 0),E=o([r.ObjectType()],E),t.Enabled=E;let y=class{};var T;o([r.Field(),i("design:type",E)],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"}(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.BoltPrincipals=c;let S=class{};o([r.Field(),i("design:type",Boolean)],S.prototype,"enabled",void 0),o([r.Field(),i("design:type",String)],S.prototype,"host",void 0),o([r.Field(),i("design:type",Number)],S.prototype,"port",void 0),o([r.Field(),i("design:type",String)],S.prototype,"url",void 0),S=o([r.ObjectType()],S),t.HTTPPrincipals=S;let g=class{};o([r.Field(),i("design:type",c)],g.prototype,"bolt",void 0),o([r.Field(),i("design:type",S)],g.prototype,"http",void 0),o([r.Field(),i("design:type",S)],g.prototype,"https",void 0),g=o([r.ObjectType()],g),t.GraphProtocolPrincipals=g;let P=class{};o([r.Field(),i("design:type",String)],P.prototype,"path",void 0),o([r.Field(),i("design:type",g)],P.prototype,"protocols",void 0),o([r.Field({nullable:!0}),i("design:type",y)],P.prototype,"authenticationMethods",void 0),P=o([r.ObjectType()],P),t.GraphConnectionPrincipals=P;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",A)],I.prototype,"info",void 0),o([r.Field(),i("design:type",P)],I.prototype,"principals",void 0),I=o([r.ObjectType()],I),t.GraphConnection=I;let N=class{};o([r.Field(),i("design:type",String)],N.prototype,"filename",void 0),o([r.Field(e=>r.Int),i("design:type",Number)],N.prototype,"size",void 0),o([r.Field(),i("design:type",String)],N.prototype,"path",void 0),o([r.Field(),i("design:type",String)],N.prototype,"contentType",void 0),N=o([r.ObjectType()],N),t.File=N;let _=class{};o([r.Field(),i("design:type",String)],_.prototype,"filename",void 0),o([r.Field(),i("design:type",String)],_.prototype,"mimetype",void 0),o([r.Field(),i("design:type",String)],_.prototype,"encoding",void 0),o([r.Field(e=>p.Stream),i("design:type",Function)],_.prototype,"createReadStream",void 0),_=o([r.InputType()],_),t.FileInput=_;let u=class{};o([r.Field(),i("design:type",String)],u.prototype,"id",void 0),o([r.Field(),i("design:type",String)],u.prototype,"publisher",void 0),o([r.Field(),i("design:type",String)],u.prototype,"name",void 0),o([r.Field({nullable:!0}),i("design:type",String)],u.prototype,"version",void 0),u=o([r.ObjectType()],u),t.GraphApp=u;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(),i("design:type",String)],D.prototype,"version",void 0),D=o([r.ObjectType()],D),t.Plugin=D;let O=class{};o([r.Field(e=>r.ID),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,"description",void 0),o([r.Field(e=>l),i("design:type",String)],O.prototype,"status",void 0),o([r.Field(e=>I),i("design:type",I)],O.prototype,"connection",void 0),o([r.Field(e=>[D]),i("design:type",Array)],O.prototype,"plugins",void 0),O=o([r.ObjectType()],O),t.Graph=O;let R=class{};o([r.Field(e=>r.ID),i("design:type",String)],R.prototype,"id",void 0),o([r.Field(e=>[O]),i("design:type",Array)],R.prototype,"graphs",void 0),R=o([r.ObjectType()],R),t.GraphDatabase=R;let C=class{};o([r.Field(e=>r.ID),i("design:type",String)],C.prototype,"id",void 0),o([r.Field(),i("design:type",String)],C.prototype,"name",void 0),o([r.Field(e=>[O]),i("design:type",Array)],C.prototype,"graphs",void 0),o([r.Field(e=>[u]),i("design:type",Array)],C.prototype,"apps",void 0),o([r.Field(e=>[N]),i("design:type",Array)],C.prototype,"files",void 0),C=o([r.ObjectType()],C),t.Project=C;let G=class{};o([r.Field(),i("design:type",String)],G.prototype,"publisher",void 0),o([r.Field(),i("design:type",String)],G.prototype,"featureName",void 0),o([r.Field(),i("design:type",String)],G.prototype,"expirationDate",void 0),o([r.Field(),i("design:type",String)],G.prototype,"featureVersion",void 0),o([r.Field(),i("design:type",String)],G.prototype,"registrant",void 0),o([r.Field(),i("design:type",String)],G.prototype,"organization",void 0),o([r.Field(),i("design:type",String)],G.prototype,"email",void 0),o([r.Field(),i("design:type",String)],G.prototype,"signature",void 0),G=o([r.ObjectType()],G),t.ActivationKey=G;let f=class{};o([r.Field(e=>[G]),i("design:type",Array)],f.prototype,"activationKeys",void 0),o([r.Field(),i("design:type",String)],f.prototype,"name",void 0),f=o([r.ObjectType()],f),t.UserAccount=f;let v=class{};o([r.Field(),i("design:type",f)],v.prototype,"me",void 0),o([r.Field(),i("design:type",s)],v.prototype,"host",void 0),o([r.Field(e=>[C]),i("design:type",Array)],v.prototype,"projects",void 0),v=o([r.ObjectType()],v),t.Workspace=v;let F=class{};o([r.Field(e=>[O]),i("design:type",Array)],F.prototype,"graphs",void 0),o([r.Field(e=>[u]),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(5))},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 filename: String!\n size: Int!\n path: 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 prefersColorScheme: String!\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 Mutation {\n uploadFile(file: Upload!): Boolean!\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\n# The `Upload` scalar type represents a file upload.\nscalar Upload\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){e.exports=require("stream")},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(6),l=n(7);t.createResolver=function(e){let t=class{workspace(t){return e.workspace(t)}platformWorkspace(t){return e.platformWorkspace(t)}uploadFile(t,n){return e.uploadFile(t,n)}onWorkspaceChange(t,n){return e.onWorkspaceChange(t,n)}onPlatformWorkspaceChange(t,n){return e.onPlatformWorkspaceChange(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,"workspace",null),o([p.Query(e=>a.PlatformWorkspace),r(0,p.Ctx()),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],t.prototype,"platformWorkspace",null),o([p.Mutation(e=>Boolean),r(0,p.Ctx()),r(1,p.Arg("file",()=>l.GraphQLUpload)),i("design:type",Function),i("design:paramtypes",[Object,a.FileInput]),i("design:returntype",Promise)],t.prototype,"uploadFile",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),o([p.Subscription(e=>a.PlatformWorkspace,{topics:s.PlatformWorkspaceUpdateTopics}),r(0,p.Ctx()),r(1,p.Root()),i("design:type",Function),i("design:paramtypes",[Object,a.PlatformWorkspace]),i("design:returntype",Promise)],t.prototype,"onPlatformWorkspaceChange",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.PLATFORM_GRAPH_ACTIVE="PLATFORM_GRAPH_ACTIVE",t.PLATFORM_GRAPH_INACTIVE="PLATFORM_GRAPH_INACTIVE",t.GRAPH_APP_ENABLED="GRAPH_APP_ENABLED",t.GRAPH_APP_DISABLED="GRAPH_APP_DISABLED",t.GRAPH_APP_INSTALLED="GRAPH_APP_INSTALLED",t.GRAPH_APP_UNINSTALLED="GRAPH_APP_UNINSTALLED",t.GRAPH_APP_UPDATED="GRAPH_APP_UPDATED",t.USER_SIGNED_IN="USER_SIGNED_IN",t.USER_SIGNED_OUT="USER_SIGNED_OUT",t.LICENSE_ADDED="LICENSE_ADDED",t.LICENSE_REMOVED="LICENSE_REMOVED",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.GRAPH_APP_DISABLED,t.GRAPH_APP_ENABLED,t.GRAPH_APP_INSTALLED,t.GRAPH_APP_UNINSTALLED,t.GRAPH_APP_UPDATED,t.USER_SIGNED_IN,t.USER_SIGNED_OUT,t.LICENSE_ADDED,t.LICENSE_REMOVED],t.PlatformWorkspaceUpdateTopics=[t.PLATFORM_GRAPH_ACTIVE,t.PLATFORM_GRAPH_INACTIVE,t.GRAPH_ACTIVE,t.GRAPH_INACTIVE,...t.DATABASE_CHANGING_ACTIONS,t.GRAPH_APP_INSTALLED,t.GRAPH_APP_UNINSTALLED,t.GRAPH_APP_UPDATED]},function(e,t){e.exports=require("graphql-upload")}])}); | ||
!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 r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.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 r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));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=4)}([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 r,i=arguments.length,p=i<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--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p},r=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 i=n(0),p=n(6),a=n(2),s=n(3);let l=class{};o([i.Field(),r("design:type",Boolean)],l.prototype,"allowSendReports",void 0),o([i.Field(),r("design:type",Boolean)],l.prototype,"allowSendStats",void 0),o([i.Field(),r("design:type",Boolean)],l.prototype,"allowStoreCredentials",void 0),l=o([i.ObjectType()],l);let d=class{};var c,A;o([i.Field(),r("design:type",Boolean)],d.prototype,"publicInternetAccess",void 0),o([i.Field(),r("design:type",l)],d.prototype,"settings",void 0),o([i.Field(),r("design:type",String)],d.prototype,"prefersColorScheme",void 0),d=o([i.ObjectType()],d),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(c=t.GraphStatus||(t.GraphStatus={})),i.registerEnumType(c,{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"}(A=t.GraphConnectionStatus||(t.GraphConnectionStatus={})),i.registerEnumType(A,{name:"GraphConnectionStatus"});let y=class{};o([i.Field(),r("design:type",String)],y.prototype,"version",void 0),o([i.Field(),r("design:type",String)],y.prototype,"edition",void 0),y=o([i.ObjectType()],y),t.GraphInfo=y;let E=class{};o([i.Field(),r("design:type",Boolean)],E.prototype,"enabled",void 0),E=o([i.ObjectType()],E),t.Enabled=E;let T=class{};var u;o([i.Field(),r("design:type",E)],T.prototype,"kerberos",void 0),o([i.Field({nullable:!0}),r("design:type",String)],T.prototype,"servicePrincipal",void 0),T=o([i.ObjectType()],T),t.KerberosMethod=T,function(e){e.OPTIONAL="OPTIONAL",e.REQUIRED="REQUIRED",e.DISABLED="DISABLED"}(u=t.TLSLevel||(t.TLSLevel={})),i.registerEnumType(u,{name:"TLSLevel"});let g=class{};o([i.Field(),r("design:type",Boolean)],g.prototype,"enabled",void 0),o([i.Field(),r("design:type",String)],g.prototype,"host",void 0),o([i.Field(),r("design:type",Number)],g.prototype,"port",void 0),o([i.Field(e=>u),r("design:type",String)],g.prototype,"tlsLevel",void 0),o([i.Field({nullable:!0}),r("design:type",String)],g.prototype,"username",void 0),o([i.Field({nullable:!0}),r("design:type",String)],g.prototype,"password",void 0),o([i.Field(),r("design:type",String)],g.prototype,"url",void 0),g=o([i.ObjectType()],g),t.BoltPrincipals=g;let S=class{};o([i.Field({nullable:!0}),r("design:type",Boolean)],S.prototype,"enabled",void 0),o([i.Field(),r("design:type",String)],S.prototype,"host",void 0),o([i.Field(),r("design:type",Number)],S.prototype,"port",void 0),o([i.Field(),r("design:type",String)],S.prototype,"url",void 0),S=o([i.ObjectType()],S),t.HTTPPrincipals=S;let P=class{};o([i.Field(),r("design:type",g)],P.prototype,"bolt",void 0),o([i.Field(),r("design:type",S)],P.prototype,"http",void 0),o([i.Field(),r("design:type",S)],P.prototype,"https",void 0),P=o([i.ObjectType()],P),t.GraphProtocolPrincipals=P;let _=class{};o([i.Field(),r("design:type",String)],_.prototype,"path",void 0),o([i.Field(),r("design:type",P)],_.prototype,"protocols",void 0),o([i.Field({nullable:!0}),r("design:type",T)],_.prototype,"authenticationMethods",void 0),_=o([i.ObjectType()],_),t.GraphConnectionPrincipals=_;let f=class{};o([i.Field(),r("design:type",String)],f.prototype,"type",void 0),o([i.Field(),r("design:type",String)],f.prototype,"databaseType",void 0),o([i.Field(e=>A),r("design:type",String)],f.prototype,"databaseStatus",void 0),o([i.Field(),r("design:type",y)],f.prototype,"info",void 0),o([i.Field(),r("design:type",_)],f.prototype,"principals",void 0),f=o([i.ObjectType()],f),t.GraphConnection=f;let I=class{};o([i.Field(),r("design:type",String)],I.prototype,"filename",void 0),o([i.Field(e=>i.Int),r("design:type",Number)],I.prototype,"size",void 0),o([i.Field(),r("design:type",String)],I.prototype,"path",void 0),o([i.Field(),r("design:type",String)],I.prototype,"contentType",void 0),I=o([i.ObjectType()],I),t.File=I;let N=class{};o([i.Field(),r("design:type",String)],N.prototype,"filename",void 0),o([i.Field(),r("design:type",String)],N.prototype,"mimetype",void 0),o([i.Field(),r("design:type",String)],N.prototype,"encoding",void 0),o([i.Field(e=>p.Stream),r("design:type",Function)],N.prototype,"createReadStream",void 0),N=o([i.InputType()],N),t.FileInput=N;let O=class{};o([i.Field(),r("design:type",String)],O.prototype,"id",void 0),o([i.Field(),r("design:type",String)],O.prototype,"publisher",void 0),o([i.Field(),r("design:type",String)],O.prototype,"name",void 0),o([i.Field({nullable:!0}),r("design:type",String)],O.prototype,"version",void 0),O=o([i.ObjectType()],O),t.GraphApp=O;let R=class{};o([i.Field(),r("design:type",String)],R.prototype,"id",void 0),o([i.Field(),r("design:type",String)],R.prototype,"name",void 0),o([i.Field(),r("design:type",String)],R.prototype,"version",void 0),R=o([i.ObjectType()],R),t.Plugin=R;let D=class{};o([i.Field(e=>i.ID),r("design:type",String)],D.prototype,"id",void 0),o([i.Field(e=>[a.Graph]),r("design:type",Array)],D.prototype,"graphs",void 0),D=o([i.ObjectType()],D),t.GraphDatabase=D;let v=class{};o([i.Field(),r("design:type",String)],v.prototype,"publisher",void 0),o([i.Field(),r("design:type",String)],v.prototype,"featureName",void 0),o([i.Field(),r("design:type",String)],v.prototype,"expirationDate",void 0),o([i.Field(),r("design:type",String)],v.prototype,"featureVersion",void 0),o([i.Field(),r("design:type",String)],v.prototype,"registrant",void 0),o([i.Field(),r("design:type",String)],v.prototype,"organization",void 0),o([i.Field(),r("design:type",String)],v.prototype,"email",void 0),o([i.Field(),r("design:type",String)],v.prototype,"signature",void 0),v=o([i.ObjectType()],v),t.ActivationKey=v;let C=class{};o([i.Field(e=>[v]),r("design:type",Array)],C.prototype,"activationKeys",void 0),o([i.Field(),r("design:type",String)],C.prototype,"name",void 0),C=o([i.ObjectType()],C),t.UserAccount=C;let G=class{};o([i.Field(),r("design:type",C)],G.prototype,"me",void 0),o([i.Field(),r("design:type",d)],G.prototype,"host",void 0),o([i.Field(e=>[s.Project]),r("design:type",Array)],G.prototype,"projects",void 0),G=o([i.ObjectType()],G),t.Workspace=G;let h=class{};o([i.Field(e=>[a.Graph]),r("design:type",Array)],h.prototype,"graphs",void 0),o([i.Field(e=>[O]),r("design:type",Array)],h.prototype,"apps",void 0),h=o([i.ObjectType()],h),t.PlatformWorkspace=h},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,p=i<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--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p},r=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 i=n(0),p=n(1);let a=class{};o([i.Field(e=>i.ID),r("design:type",String)],a.prototype,"id",void 0),o([i.Field(),r("design:type",String)],a.prototype,"name",void 0),o([i.Field(),r("design:type",String)],a.prototype,"description",void 0),o([i.Field(e=>p.GraphStatus),r("design:type",String)],a.prototype,"status",void 0),o([i.Field(e=>p.GraphConnection),r("design:type",p.GraphConnection)],a.prototype,"connection",void 0),o([i.Field(e=>[p.Plugin]),r("design:type",Array)],a.prototype,"plugins",void 0),o([i.Field(e=>[n(3).Project],{nullable:!0}),r("design:type",Array)],a.prototype,"projects",void 0),a=o([i.ObjectType()],a),t.Graph=a},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,p=i<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--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p},r=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 i=n(0),p=n(1);let a=class{};o([i.Field(e=>i.ID),r("design:type",String)],a.prototype,"id",void 0),o([i.Field(),r("design:type",String)],a.prototype,"name",void 0),o([i.Field(e=>[n(2).Graph]),r("design:type",Array)],a.prototype,"graphs",void 0),o([i.Field(e=>[p.GraphApp]),r("design:type",Array)],a.prototype,"apps",void 0),o([i.Field(e=>[p.File]),r("design:type",Array)],a.prototype,"files",void 0),a=o([i.ObjectType()],a),t.Project=a},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 r=n(0);t.getSchema=(async()=>{const e=n(5);return Promise.resolve(e)});t.buildSchema=(async e=>r.buildSchema(e)),o(n(1)),o(n(7)),o(n(10)),o(n(11))},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 filename: String!\n size: Int!\n path: 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 projects: [Project!]\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 prefersColorScheme: String!\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 Mutation {\n uploadFile(file: Upload!): Boolean!\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\n# The `Upload` scalar type represents a file upload.\nscalar Upload\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){e.exports=require("stream")},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,p=i<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--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=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(8),l=n(9);t.createResolver=function(e){let t=class{workspace(t){return e.workspace(t)}platformWorkspace(t){return e.platformWorkspace(t)}uploadFile(t,n){return e.uploadFile(t,n)}onWorkspaceChange(t,n){return e.onWorkspaceChange(t,n)}onPlatformWorkspaceChange(t,n){return e.onPlatformWorkspaceChange(t,n)}};return o([p.Query(e=>a.Workspace),i(0,p.Ctx()),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",Promise)],t.prototype,"workspace",null),o([p.Query(e=>a.PlatformWorkspace),i(0,p.Ctx()),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",Promise)],t.prototype,"platformWorkspace",null),o([p.Mutation(e=>Boolean),i(0,p.Ctx()),i(1,p.Arg("file",()=>l.GraphQLUpload)),r("design:type",Function),r("design:paramtypes",[Object,a.FileInput]),r("design:returntype",Promise)],t.prototype,"uploadFile",null),o([p.Subscription(e=>a.Workspace,{topics:s.WorkspaceUpdateTopics}),i(0,p.Ctx()),i(1,p.Root()),r("design:type",Function),r("design:paramtypes",[Object,a.Workspace]),r("design:returntype",Promise)],t.prototype,"onWorkspaceChange",null),o([p.Subscription(e=>a.PlatformWorkspace,{topics:s.PlatformWorkspaceUpdateTopics}),i(0,p.Ctx()),i(1,p.Root()),r("design:type",Function),r("design:paramtypes",[Object,a.PlatformWorkspace]),r("design:returntype",Promise)],t.prototype,"onPlatformWorkspaceChange",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.PLATFORM_GRAPH_ACTIVE="PLATFORM_GRAPH_ACTIVE",t.PLATFORM_GRAPH_INACTIVE="PLATFORM_GRAPH_INACTIVE",t.GRAPH_APP_ENABLED="GRAPH_APP_ENABLED",t.GRAPH_APP_DISABLED="GRAPH_APP_DISABLED",t.GRAPH_APP_INSTALLED="GRAPH_APP_INSTALLED",t.GRAPH_APP_UNINSTALLED="GRAPH_APP_UNINSTALLED",t.GRAPH_APP_UPDATED="GRAPH_APP_UPDATED",t.USER_SIGNED_IN="USER_SIGNED_IN",t.USER_SIGNED_OUT="USER_SIGNED_OUT",t.LICENSE_ADDED="LICENSE_ADDED",t.LICENSE_REMOVED="LICENSE_REMOVED",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.GRAPH_APP_DISABLED,t.GRAPH_APP_ENABLED,t.GRAPH_APP_INSTALLED,t.GRAPH_APP_UNINSTALLED,t.GRAPH_APP_UPDATED,t.USER_SIGNED_IN,t.USER_SIGNED_OUT,t.LICENSE_ADDED,t.LICENSE_REMOVED],t.PlatformWorkspaceUpdateTopics=[t.PLATFORM_GRAPH_ACTIVE,t.PLATFORM_GRAPH_INACTIVE,t.GRAPH_ACTIVE,t.GRAPH_INACTIVE,...t.DATABASE_CHANGING_ACTIONS,t.GRAPH_APP_INSTALLED,t.GRAPH_APP_UNINSTALLED,t.GRAPH_APP_UPDATED]},function(e,t){e.exports=require("graphql-upload")},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,p=i<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--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=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(3),s=n(2);t.createProjectResolver=function(e){let t=class{graphs(t,n){return e.graphs(t,n)}};return o([p.FieldResolver(e=>s.Graph),i(0,p.Ctx()),i(1,p.Root()),r("design:type",Function),r("design:paramtypes",[Object,a.Project]),r("design:returntype",Promise)],t.prototype,"graphs",null),t=o([p.Resolver(e=>a.Project)],t)}},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,p=i<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--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=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(2),s=n(3);t.createGraphResolver=function(e){let t=class{projects(t,n){return e.projects(t,n)}};return o([p.FieldResolver(e=>[s.Project]),i(0,p.Ctx()),i(1,p.Root()),r("design:type",Function),r("design:paramtypes",[Object,a.Graph]),r("design:returntype",Promise)],t.prototype,"projects",null),t=o([p.Resolver(e=>a.Graph)],t)}}])}); |
{ | ||
"name": "@neo4j/relate-api", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
171780
1115