UNPKG

soap-graphql

Version:

Create a GraphQL schema from a WSDL-defined SOAP endpoint.

67 lines 3.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var graphql_1 = require("graphql"); var graphql_iso_date_1 = require("graphql-iso-date"); /** * Default implementation of CustomTypeResolver. * Based on https://www.w3.org/TR/xmlschema-2/#built-in-datatypes */ var DefaultTypeResolver = /** @class */ (function () { function DefaultTypeResolver() { this.string = graphql_1.GraphQLString; this.base64Binary = graphql_1.GraphQLString; this.hexBinary = graphql_1.GraphQLString; this.duration = graphql_1.GraphQLString; this.gYearMonth = graphql_1.GraphQLString; this.gYear = graphql_1.GraphQLString; this.gMonthDay = graphql_1.GraphQLString; this.gDay = graphql_1.GraphQLString; this.gMonth = graphql_1.GraphQLString; this.anyURI = graphql_1.GraphQLString; this.QName = graphql_1.GraphQLString; this.normalizedString = graphql_1.GraphQLString; this.token = graphql_1.GraphQLString; this.NMTOKEN = graphql_1.GraphQLString; this.NMTOKENS = graphql_1.GraphQLString; this.language = graphql_1.GraphQLString; this.Name = graphql_1.GraphQLString; this.NCName = graphql_1.GraphQLString; this.IDREF = graphql_1.GraphQLString; this.IDREFS = graphql_1.GraphQLString; this.ENTITY = graphql_1.GraphQLString; this.ENTITIES = graphql_1.GraphQLString; this.ID = graphql_1.GraphQLID; this.boolean = graphql_1.GraphQLBoolean; this.byte = graphql_1.GraphQLInt; this.unsignedByte = graphql_1.GraphQLInt; this.short = graphql_1.GraphQLInt; this.unsignedShort = graphql_1.GraphQLInt; this.int = graphql_1.GraphQLInt; this.unsignedInt = graphql_1.GraphQLInt; this.integer = graphql_1.GraphQLInt; this.positiveInteger = graphql_1.GraphQLInt; this.nonPositiveInteger = graphql_1.GraphQLInt; this.negativeInteger = graphql_1.GraphQLInt; this.nonNegativeInteger = graphql_1.GraphQLInt; this.long = graphql_1.GraphQLInt; this.unsignedLong = graphql_1.GraphQLInt; this.decimal = graphql_1.GraphQLFloat; this.float = graphql_1.GraphQLFloat; this.double = graphql_1.GraphQLFloat; this.dateTime = graphql_iso_date_1.GraphQLDateTime; this.date = graphql_iso_date_1.GraphQLDate; this.time = graphql_iso_date_1.GraphQLTime; } DefaultTypeResolver.prototype.resolve = function (typeName) { return this[typeName]; }; DefaultTypeResolver.prototype.outputType = function (typeName) { return this.resolve(typeName); }; DefaultTypeResolver.prototype.inputType = function (typeName) { return this.resolve(typeName); }; return DefaultTypeResolver; }()); exports.DefaultTypeResolver = DefaultTypeResolver; //# sourceMappingURL=custom-type-resolver.js.map