{"version":3,"sources":["/home/renatorib/p/publissue/packages/api/dist/__chunks/RZE2CHFQ.cjs","../../src/publissue/getRepository.ts"],"names":["GetRepositoryQuery","operation","graphql","data","getRepository","result","__spreadValues"],"mappings":"AAAA,sHAAkC,6CAAmC,6CAAmC,ICGlGA,CAAAA,CAAqBC,4BAAAA,4BACzBC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,CAOP,CACH,CAAA,CAAE,OAAA,CAASC,CAAAA,EACFA,CAAAA,CAAK,UACb,CAAA,CAED,MAAA,SAAsBC,CAAAA,CAAAA,CAA+B,CACnD,IAAMC,CAAAA,CAAS,MAAM,IAAA,CAAK,OAAA,CAAQL,CAAkB,CAAA,CAAE,OAAA,CAAQM,4BAAAA,CAAA,CAAA,CAAK,IAAA,CAAK,IAAA,CAAM,CAAA,CAC9E,OAAA,IAAA,CAAK,IAAA,CAAK,EAAA,CAAKD,CAAAA,CAAO,EAAA,CAEfA,CACT,CAAA,cAAA","file":"/home/renatorib/p/publissue/packages/api/dist/__chunks/RZE2CHFQ.cjs","sourcesContent":[null,"import { graphql, operation } from \"../lib/graphql\";\nimport { Publissue } from \".\";\n\nconst GetRepositoryQuery = operation(\n  graphql(`\n    query GetRepository($owner: String!, $name: String!) {\n      repository(owner: $owner, name: $name) {\n        id\n        url\n      }\n    }\n  `),\n).withMap((data) => {\n  return data.repository!;\n});\n\nexport async function getRepository(this: Publissue) {\n  const result = await this.graphql(GetRepositoryQuery).execute({ ...this.repo });\n  this.repo.id = result.id;\n\n  return result;\n}\n"]}