{"version":3,"file":"OpenId4VcIssuerRepository.mjs","names":[],"sources":["../../../src/openid4vc-issuer/repository/OpenId4VcIssuerRepository.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\n\nimport { EventEmitter, InjectionSymbols, inject, injectable, Repository, type StorageService } from '@credo-ts/core'\n\nimport { OpenId4VcIssuerRecord } from './OpenId4VcIssuerRecord'\n\n@injectable()\nexport class OpenId4VcIssuerRepository extends Repository<OpenId4VcIssuerRecord> {\n  public constructor(\n    @inject(InjectionSymbols.StorageService) storageService: StorageService<OpenId4VcIssuerRecord>,\n    eventEmitter: EventEmitter\n  ) {\n    super(OpenId4VcIssuerRecord, storageService, eventEmitter)\n  }\n\n  public findByIssuerId(agentContext: AgentContext, issuerId: string) {\n    return this.findSingleByQuery(agentContext, { issuerId })\n  }\n\n  public getByIssuerId(agentContext: AgentContext, issuerId: string) {\n    return this.getSingleByQuery(agentContext, { issuerId })\n  }\n}\n"],"mappings":";;;;;;;;AAOO,sCAAM,kCAAkC,WAAkC;CAC/E,AAAO,YACL,AAAyC,gBACzC,cACA;AACA,QAAM,uBAAuB,gBAAgB,aAAa;;CAG5D,AAAO,eAAe,cAA4B,UAAkB;AAClE,SAAO,KAAK,kBAAkB,cAAc,EAAE,UAAU,CAAC;;CAG3D,AAAO,cAAc,cAA4B,UAAkB;AACjE,SAAO,KAAK,iBAAiB,cAAc,EAAE,UAAU,CAAC;;;;CAd3D,YAAY;oBAGR,OAAO,iBAAiB,eAAe"}