altair-graphql-core
Version:
Several of the core logic for altair graphql client
16 lines • 632 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createV1Plugin = void 0;
const plugin_schema_1 = require("./plugin.schema");
const createV1Plugin = (name, manifest) => {
return plugin_schema_1.altairV1PluginSchema.parse({
name,
manifest,
type: manifest.type,
display_name: manifest.display_name || name,
plugin_class: manifest.plugin_class,
capabilities: Array.from(new Set([...(manifest.capabilities || []), ...['query:read', 'query:write']])),
});
};
exports.createV1Plugin = createV1Plugin;
//# sourceMappingURL=plugin.interfaces.js.map