import { getScript, getScriptMetadata } from "../invokers/script";

export default {
  script: async (root, { input: { name, namespace, version } }) =>
    getScript.execute({
      package: { name, namespace },
      version,
    }),
  scriptMetadata: async (root, { input: { name, namespace } }) =>
    getScriptMetadata.execute({
      package: { name, namespace },
    }),
};
