@wepublish/api
Version:
API core for we.publish.
31 lines • 1.46 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GraphQLCreatedToken = exports.GraphQLToken = exports.GraphQLTokenInput = void 0;
const graphql_1 = require("graphql");
const graphql_scalars_1 = require("graphql-scalars");
exports.GraphQLTokenInput = new graphql_1.GraphQLInputObjectType({
name: 'TokenInput',
fields: {
name: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString) }
}
});
exports.GraphQLToken = new graphql_1.GraphQLObjectType({
name: 'Token',
fields: {
id: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID) },
createdAt: { type: new graphql_1.GraphQLNonNull(graphql_scalars_1.GraphQLDateTime) },
modifiedAt: { type: new graphql_1.GraphQLNonNull(graphql_scalars_1.GraphQLDateTime) },
name: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString) }
}
});
exports.GraphQLCreatedToken = new graphql_1.GraphQLObjectType({
name: 'CreatedToken',
fields: {
id: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID) },
createdAt: { type: new graphql_1.GraphQLNonNull(graphql_scalars_1.GraphQLDateTime) },
modifiedAt: { type: new graphql_1.GraphQLNonNull(graphql_scalars_1.GraphQLDateTime) },
name: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString) },
token: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString) }
}
});
//# sourceMappingURL=token.js.map