UNPKG

altair-graphql-core

Version:

Several of the core logic for altair graphql client

12 lines 477 B
import { altairV1PluginSchema, } from './plugin.schema'; export const createV1Plugin = (name, manifest) => { return 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']])), }); }; //# sourceMappingURL=plugin.interfaces.js.map