prisma-client-lib
Advanced tools
Comparing version 1.18.0-beta.4 to 1.18.0-beta.6
@@ -117,3 +117,3 @@ "use strict"; | ||
TypescriptGenerator.prototype.render = function (options) { | ||
return this.format(this.compile(templateObject_1 || (templateObject_1 = __makeTemplateObject(["", "\n\n", "\n\nexport interface Exists {\n", "\n}\n\nexport interface Node {}\n\nexport interface Fragmentable {\n $fragment<T>(fragment: string | Object): T\n}\n\n", " interface ", " {\n $exists: Exists;\n $graphql: <T ", " any>(query: string, variables?: {[key: string]: any}) => Promise<T>;\n $getAbstractResolvers(filterSchema?: GraphQLSchema | string): IResolvers;\n\n /**\n * Queries\n */\n\n", ";\n\n /**\n * Mutations\n */\n\n", ";\n\n\n /**\n * Subscriptions\n */\n\n $subscribe: Subscription\n\n}\n\nexport interface Subscription {\n", ";\n}\n\n", "\n\n/**\n * Types\n*/\n\n", "\n\n/**\n * Type Defs\n*/\n\n", "\n"], ["\\\n", "\n\n", "\n\nexport interface Exists {\\n", "\\n}\n\nexport interface Node {}\n\nexport interface Fragmentable {\n $fragment<T>(fragment: string | Object): T\n}\n\n", " interface ", " {\n $exists: Exists;\n $graphql: <T ", | ||
return this.format(this.compile(templateObject_1 || (templateObject_1 = __makeTemplateObject(["", "\n\n", "\n\nexport interface Exists {\n", "\n}\n\nexport interface Node {}\n\nexport interface Fragmentable {\n $fragment<T>(fragment: string | DocumentNode): Promise<T>\n}\n\n", " interface ", " {\n $exists: Exists;\n $graphql: <T ", " any>(query: string, variables?: {[key: string]: any}) => Promise<T>;\n $getAbstractResolvers(filterSchema?: GraphQLSchema | string): IResolvers;\n\n /**\n * Queries\n */\n\n", ";\n\n /**\n * Mutations\n */\n\n", ";\n\n\n /**\n * Subscriptions\n */\n\n $subscribe: Subscription\n\n}\n\nexport interface Subscription {\n", ";\n}\n\n", "\n\n/**\n * Types\n*/\n\n", "\n\n/**\n * Type Defs\n*/\n\n", "\n"], ["\\\n", "\n\n", "\n\nexport interface Exists {\\n", "\\n}\n\nexport interface Node {}\n\nexport interface Fragmentable {\n $fragment<T>(fragment: string | DocumentNode): Promise<T>\n}\n\n", " interface ", " {\n $exists: Exists;\n $graphql: <T ", | ||
" any>(query: string, variables?: {[key: string]: any}) => Promise<T>;\n $getAbstractResolvers(filterSchema?: GraphQLSchema | string): IResolvers;\n\n /**\n * Queries\n */\n\n", ";\n\n /**\n * Mutations\n */\n\n", ";\n\n\n /**\n * Subscriptions\n */\n\n $subscribe: Subscription\n\n}\n\nexport interface Subscription {\n", ";\n}\n\n", "\n\n/**\n * Types\n*/\n\n", "\n\n/**\n * Type Defs\n*/\n\n", "\n"])), this.renderImports(), this.renderAtLeastOne(), this.renderExists(), this.exportPrisma ? 'export' : '', this.prismaInterface, this.genericsDelimiter, this.renderQueries(), this.renderMutations(), this.renderSubscriptions(), this.renderClientConstructor, this.renderTypes(), this.renderExports(options))); | ||
@@ -125,3 +125,3 @@ }; | ||
TypescriptGenerator.prototype.renderImports = function () { | ||
return codeComment_1.codeComment + "\n\nimport { GraphQLSchema } from 'graphql'\nimport { IResolvers } from 'graphql-tools/dist/Interfaces'\nimport { makePrismaClientClass, BaseClientOptions } from 'prisma-client-lib'\nimport { typeDefs } from './prisma-schema'"; | ||
return codeComment_1.codeComment + "\n\nimport { DocumentNode, GraphQLSchema } from 'graphql'\nimport { IResolvers } from 'graphql-tools/dist/Interfaces'\nimport { makePrismaClientClass, BaseClientOptions } from 'prisma-client-lib'\nimport { typeDefs } from './prisma-schema'"; | ||
}; | ||
@@ -128,0 +128,0 @@ TypescriptGenerator.prototype.renderPrismaClassArgs = function (options) { |
{ | ||
"name": "prisma-client-lib", | ||
"version": "1.18.0-beta.4", | ||
"version": "1.18.0-beta.6", | ||
"author": "Tim Suchanek <suchanek@prisma.io>", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
188941