@sonarsource/marketing-gatsby-transformer-kontent-graphql
Version:
Custom GraphQL types for @kentico/gatsby-source-kontent
16 lines (15 loc) • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var pluginOptionsSchema = function (_a) {
var Joi = _a.Joi;
return Joi.object({
projectId: Joi.string().required().description('Kontent Project ID'),
managementKey: Joi.string().required().description('Management API key'),
typesToGenerate: Joi.array()
.items(Joi.string())
.allow(null)
.default(null)
.description('if null, all types will be overriden. specify an empty array to disable type overriding'),
}).required();
};
exports.default = pluginOptionsSchema;