{"version":3,"file":"OpenBadgesConsentRepository.mjs","names":["OpenBadgesConsentRepository","storageService: StorageService<OpenBadgesConsentRecord>"],"sources":["../../src/repository/OpenBadgesConsentRepository.ts"],"sourcesContent":["import type { StorageService } from '@credo-ts/core'\nimport { injectable, inject, InjectionSymbols, EventEmitter, Repository } from '@credo-ts/core'\nimport { OpenBadgesConsentRecord } from './OpenBadgesConsentRecord'\n\n@injectable()\nexport class OpenBadgesConsentRepository extends Repository<OpenBadgesConsentRecord> {\n  public constructor(\n    @inject(InjectionSymbols.StorageService) storageService: StorageService<OpenBadgesConsentRecord>,\n    eventEmitter: EventEmitter\n  ) {\n    super(OpenBadgesConsentRecord, storageService, eventEmitter)\n  }\n\n  public async findByClientAndSubject(agentContext: any, clientId: string, subject: string) {\n    return this.findSingleByQuery(agentContext, { clientId, subject })\n  }\n}\n\n"],"mappings":";;;;;;;;;;+BAEmE;;;;;+BAG5D,MAAMA,sCAAoC,WAAoC;EACnF,AAAO,YACL,AAAyCC,gBACzC,cACA;AACA,SAAM,yBAAyB,gBAAgB,aAAa;;EAG9D,MAAa,uBAAuB,cAAmB,UAAkB,SAAiB;AACxF,UAAO,KAAK,kBAAkB,cAAc;IAAE;IAAU;IAAS,CAAC;;;;EAVrE,YAAY;qBAGR,OAAO,iBAAiB,eAAe"}